CS2D
Maps/Editor What can I do with if_trigger ? What can I do with if_trigger ?
6 replies Hello.
What can I do with if_trigger?
Thanks for all answers. Make a check. That is all.
Example, you've got trigger_move, you link it with trigger_if where you check example "if player(id,"health")>50" or something like that. Okay, okay... Thank you.
Do you know any complex codes? example you put trigger_use and trigger_if.
in the "use trigger" you writte
Trigger:[if]
in the trigger_if
name:[if]
lua:[parse('spawnprojectile...blablablah')]
...
when you use trigger_use, your trigger if will do projectile, with position you add. @ Mora:
No, it's not used for that.
trigger_if entity will only be triggered if statement in it is true. @ Infinite Rain: But also call the function with specified arguments first to get the value. So, Mora is right but that's not the real usage of trigger_if You can put little lua scripts on map with that function, without using .lua file