Page 1 of 1

Scripting some triggers

Posted: Wed May 28, 2008 4:42 pm
by SilentAngel
:( :cry: Guys I'm trying to spown a trigger that kill you when you cross it...
I heard that PA scripting is similar to AA/SH/BT..so..I tryied using the same trigger code I used for Malta in SH but it don't wanna work! I can't understeand where is the problem..
however the map I'm tring to mod is MP_Bridge_INV.................
the script I used is this:

Code: Select all

local.trig = spawn trigger_multiple
local.trig.origin = ( 171.13 -237.55 1161.21 ) 
local.trig setsize ( -5 -3021.93 -580.91 ) ( 5 3261.23 4290.05 ) 
local.trig setthread  Trigger1
local.trig message "NO CROSS!" 
local.trig wait 1
local.trig delay 0 

 

Trigger1:
local.player=parm.other
if (local.player.isTrigger1==1) 
end 



local.player.isTrigger1=1 
local.player kill 
local.player.isTrigger1=0 
end 
This trigger works because the message NO-CROSS appear but I don't die!!!!! Someone knows why? Ty A lOt :!: