Hello
Im looking for a code that Checks if Somebody is Stood on a Trigger.
If Somebody is Stood on the Trigger do nothing about it.
But if somebody isnt stood on the Trigger Reset things.
Thanks
If Somebody is Touching Trigger.
Moderator: Core Staff
Re: If Somebody is Touching Trigger.
Here you go:
Code: Select all
main()
{
maps\mp\_load::main();
getent("triggerCheck","targetname") thread triggerCheck();
}
triggerCheck()
{
while(1)
{
self waittill("trigger", other);
while(other isTouching(self))
wait 1;
thread resetStuff();
wait 0.1;
}
}
resetStuff()
{
//Reset Stuff Here
}
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet
-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]
Who is online
Users browsing this forum: No registered users and 2 guests