
Posts
2,789
Respect
230Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
// Name: spawn_trig_on_notify
// Purpose: To spawn a trigger_radius at the given origin with the given radius, height, and flags
//
// Arguments(name(dataType): description):
// notifyStr(String): The string to wait for before spawning the trig
// Origin(origin): The origin of the trig you want to spawn
// radius(int): radius of the trigger
// height(int): height of the trigger
// spawnflags(int): the spawnflags that you want the trigger to spawn with
//
// Example code:
// trig = spawn_trig_on_notify("ee_blocker_open", self.origin, 24, 24, 0);
//
spawn_trig_on_notify(notifyStr, origin, radius, height, spawnflags)
{
level waittill(notifyStr);
trig = spawn("trigger_radius", origin, spawnflags, radius, height);
trig SetCursorHint("HINT_NOICON");
for(i=0;i<get_players().size;i++)
trig setVisibleToPlayer(get_players()[i]);
return trig;
}![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
i don't know what the hell this is for but ty anyway![]()
+1
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() Box Mappers Elite |