UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Making an object spawn in?

broken avatar :(
Created 5 years ago
by Chadric273
0 Members and 1 Guest are viewing this topic.
911 views
broken avatar :(
×
broken avatar :(
Location: Minnesota
Date Registered: 7 July 2012
Last active: 5 months ago
Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Chadric273's Groups
Chadric273's Contact & Social Linkschadric.hjellming
Hello all!

I was wondering how would i go about coding an object so that it can not be seen in level initially but spawn in later after an easter egg step. My main question is how do I make an object spawn in the level through code at an origon of my choice or at the location of a script struct.
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 7 February 2023
Last active: 1 year ago
Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
wal hala's Groups
wal hala's Contact & Social Links
the simplest way is to hide it under the map and instantly move it to possition
broken avatar :(
×
broken avatar :(
Location: Minnesota
Date Registered: 7 July 2012
Last active: 5 months ago
Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Chadric273's Groups
Chadric273's Contact & Social Linkschadric.hjellming
There is actually an easier way. GSC scripts have two functions built in call Hide and Unhide. What I ended up doing is I wrote the script in a way where at the start of the match, the objects utilize the Hide function to not be seen. Then, once the easter egg step is completed, I declare the Unhide function on the object and they instantly appear inplace. I've done this for destructible walls too where I'll Hide the debris from the wall being blown up, and then once the function deletes the wall from it exploding, then I'll unhide the debris and by the time the smoke clears from the projectile or grenade there is debris on the ground from the wall being destroyed.

 
Loading ...