Jump to content
Sign in to follow this  
JacobJ

Behaviour trigger

Recommended Posts

Hey

I have a soldier, that I want to explode using this line:

_bomb = "Bo_Mk82" createVehicle getPos nameofthesoldier

I have put in this in the soldiers init:

this setBehaviour "safe"

Now when I shoot him, he automaticly get Aware right? And when he gets aware I want him to explode using the line above.

I have tried different stuff, but nothing seems to work. I know this is simple, but just cant figure it out.

Hope you guys can help me

/Jacob

UPDATE:

Is there a way to make it a negative condition?:

!behaviour = safe

or somethign like that?

Edited by JacobJ

Share this post


Link to post
Share on other sites

still it wont let me do it.

This is my idea:

I have a nervous terrorit in a bus, he drives around in safe-mode. When he meets enemies and they shoot at him, he must blow up because he changes behaviour. If he is driving around in a bus, my trigger has to cover a very big area (ect. the whole map).

How do I do that?

Share this post


Link to post
Share on other sites

Trigger can be size 0x0 if the condition doesn't use "this" or "thislist".

Share this post


Link to post
Share on other sites

nevermind ive figured it out myself.

For anyone else who wants to do it:

1. make a unit and name it ect. rambo

2. make a trigger with

condi: behaviour rambo != "aware"

and

onAct: _bomb = "Bo_Mk82" createVehicle getPos rambo

And that is it.

Share this post


Link to post
Share on other sites
nevermind ive figured it out myself.

For anyone else who wants to do it:

1. make a unit and name it ect. rambo

2. make a trigger with

condi: behaviour rambo != "aware"

and

onAct: _bomb = "Bo_Mk82" createVehicle getPos rambo

And that is it.

Looks very similar to what shk said :p

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×