Jump to content

Home

trigger question


zag

Recommended Posts

You can do it but you need two triggers and target_activate and target_deactivate entities.

 

Create the first trigger to work when you're inside and the second one around it. Set an inactive flag in the second trigger.

 

Connect (target) the first one to target_activate and connect the target_activate to the second trigger: The second trigger will be activated when you're inside the first trigger.

 

Then connect the second trigger to target_deactivate and target_deactivate back to the second trigger: The second trigger will spawn targets and disable itself.

Link to comment
Share on other sites

It will not work with Icarus because of the same reason it doesn't work with the standard triggers. To make it work the Icarus should support a kind of "private/local" variables separate for all players. Unfortunately it doesn't and all the variables are global.

Link to comment
Share on other sites

hmm wellill try and explain what im trying to do:

basically theres a dance floor (MP map) made up of medium size colured squares, for each square i have 2 func_useables, one covered with a normal colour texture and the other covered in the same colour but it is a glowing shader.

what i want is when teh player walk over a sqaure it 'lights' up and when the player moves off it goes off

kinda like in that micheal jackson music video 'billie jean' i think...

anyway is it possible at all?

:confused:

Link to comment
Share on other sites

I think they're created to allow to pass non static arguments to more generic scripts rather that supporting the local variables. It'd be on overcomplicated mess, nevertheless it could work.

 

Coming back to the main problem: the "dancing" floor. I'd do it with a transpadent/nonsolid door in the middle of each square instead of a trigger. That door will spawns the func_usable when you're close enough and spawns again when you're off. If it doesn't work you can leave the trigger above the square and target the trigger on the door and the door on func_usable:

 

-When you're inside the trigger, it will spawn the door (it will be spawning all the time) then the door will spawn the func_usable.

 

-When you're off the trigger it will not spawn the door and the door will spawn itself the “closetarget”ed func_static.

Link to comment
Share on other sites

the solution is near perfect:D

i set the wait time to 0 and i still takes a small time to move back once ive moved off the square but it looks pretty nifty none the less, thanks a bunch

now i cant get the glowing texture to work :confused:

here an example of the shader code for one of the squares...

textures/vas_party/disco_purple_glow

{

qer_editorimage textures/vas_party/gradient3

surfaceparm nomarks

surfaceparm trans

q3map_nolightmap

{

map textures/vas_party/gradient3

glow

rgbGen const ( 0.501961 0.000000 0.501961 )

tcMod stretch noise 1 0.1 0 1

}

}

 

is there a reason why it shouldnt glow cos i dont see it glowing..

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...