trigger spawn array?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
fuhrer
Captain
Posts: 253
Joined: Sun Mar 14, 2004 3:36 am

trigger spawn array?

Post by fuhrer »

hey im tryin to add a trigger use when a player hits a trigger multiple, but the use i want glued to the player, therefore i need to spawn a new trigger with a different index number? so the next player can also get one

Code: Select all

level.trigerd ++

("local.triga" + level.trigerd) = spawn trigger_use
("local.triga" + level.trigerd).origin = ( 3444 723 -343 ) //axis 
("local.triga" + level.trigerd) setsize ( -50 -50 -50 ) ( 50 50 50 ) 
("local.triga" + level.trigerd) glue local.player
("local.triga" + level.trigerd) waittill trigger
("local.triga" + level.trigerd) delete
dont work, is there a way i can do it?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

("local.triga" + level.trigerd)

could be

level.trigger[level.trigerd]
Image
fuhrer
Captain
Posts: 253
Joined: Sun Mar 14, 2004 3:36 am

Post by fuhrer »

thanx jv that works, however can u tell me what the numbers for setsize are ( -50 -50 -50 ) ( 50 50 50 ) why is there 2?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

The first one sets the lower left front corner, the other one the upper right back 8-)
Image
Post Reply