English What can I do with if_trigger ?

6 replies
Goto Page
To the start Previous 1 Next To the start
Up
Qater
User
Offline Off
Hello.
What can I do with if_trigger?
Thanks for all answers.
Actions speak louder than words.
16.03.14 07:15:38 pm
Up
Rainoth
Moderator
Offline Off
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.
16.03.14 07:18:19 pm
Up
Qater
User
Offline Off
Okay, okay... Thank you.
Do you know any complex codes?
Actions speak louder than words.
17.03.14 08:43:48 am
Up
Mora_rus
User
Offline Off
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.
17.03.14 10:13:13 am
Up
Infinite Rain
Reviewer
Offline Off
@user Mora_rus:
No, it's not used for that.
trigger_if entity will only be triggered if statement in it is true.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
17.03.14 12:53:41 pm
Up
MikuAuahDark
User
Offline Off
@user Infinite Rain: But also call the function with specified arguments first to get the value. So, user Mora_rus is right but that's not the real usage of trigger_if
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
17.03.14 01:06:38 pm
Up
StirlizZ-Fapicon
Super User
Offline Off
You can put little lua scripts on map with that function, without using .lua file
CS2d for ANDROID Discord server is here: https://discord.gg/ww59nvf
To the start Previous 1 Next To the start