Triggers with multiple contacts?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Ramah Palmer
Warrant Officer
Posts: 131
Joined: Sun May 25, 2003 10:13 am
Location: Nottinghamshire: UK

Triggers with multiple contacts?

Post by Ramah Palmer »

Hi everyone,

I seem to have a problem with a trigger_multiple I have that is supposed to cause pain to whoever touches it. If there is more than one person touching it then it tends to only give pain to one person until they jump up for a seconds and then it shifts to the other one.
In order to slow the pain down a little I have a 'wait 2.5' on my trigger and I guess that this is being called by one person and then anyone else who touches the trigger at that time also finds the trigger in a passive state.

Is there any way to get round this? :?


Thanks in advance for anyone who can help.
Mapping is just INCREDIBLY time consuming.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use a trigger_multipleall 8-)
Image
Ramah Palmer
Warrant Officer
Posts: 131
Joined: Sun May 25, 2003 10:13 am
Location: Nottinghamshire: UK

Post by Ramah Palmer »

:oops:

Erm...thanks.
Mapping is just INCREDIBLY time consuming.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

thread

Post by tltrude »

Please post the thread, and tell us if the trigger uses "setthread".
Tom Trude,

Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

maybe try something like this

$trigger setthread hurtplayer

hurtplayer:

local.player = parm.other
while(local.player istouching self)
{
local.player hurt 10
wait 1
}
end
Image
Post Reply