Can somebody help?
doTouch
Moderator: Moderators
-
Krane
- Lieutenant General
- Posts: 782
- Joined: Sat May 31, 2003 4:18 pm
- Location: California, USA
- Contact:
doTouch
I'm havin some problems w/ doTouch in my trigger...I want a trigger that is activated only when someone is inside. When the player gets out, the stuff stops...In, stuff...Out, no stuff...
Can somebody help?
Can somebody help?
-
The French Tourist !
- Lance Corporal
- Posts: 17
- Joined: Mon May 17, 2004 11:31 pm
- Contact:
When you want to be hurted while being inside a trigger_multiple, use the command volumedamage. This command is only available when you are inside the trigger.
A trigger doesn't have to activate a thread. Il does if you enter the key/value : setthread/mythread. But you can use this syntax :
main:
level waittill spawn
thread mythread
end
// Thread
mythread :
$mytrigger waittill trigger
$mytrigger volumedamage 10
loop:
// Commands for the alarm
while ( $player istouching $trigger )
{goto loop}
end
A trigger doesn't have to activate a thread. Il does if you enter the key/value : setthread/mythread. But you can use this syntax :
main:
level waittill spawn
thread mythread
end
// Thread
mythread :
$mytrigger waittill trigger
$mytrigger volumedamage 10
loop:
// Commands for the alarm
while ( $player istouching $trigger )
{goto loop}
end
The French mapping is like the French kiss : the BEST one !
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
To some extent, yes... but you need to get ahold of the player as well: and just writing $player is not enough as that will be an array of players...lizardkid wrote:wooo! lots of ideas....
while($player istouching $trigger)
{
//blah blah
}
right tltrude?
This can all be done, but depending on what you want to happen it will be done in different ways. So Krane: can you tell us what you want to do with it? Just in a very non-technical way... what are you aiming for?
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
local.player = parm.other
while (1)
if (local.player isTouching $trigger)
{
}
else
{
end
}
end
//you need all that crap otherwise the second time the trigger is touched what ever happens to local.playe will happen twice then 3 times etc... etc...
while (1)
if (local.player isTouching $trigger)
{
}
else
{
end
}
end
//you need all that crap otherwise the second time the trigger is touched what ever happens to local.playe will happen twice then 3 times etc... etc...
hope this helps, prob not cos it's all foreign 2 me :-/
-
The French Tourist !
- Lance Corporal
- Posts: 17
- Joined: Mon May 17, 2004 11:31 pm
- Contact:



