Jump to content
Sign in to follow this  
DeadalusHD

Need some functions :S

Recommended Posts

So, i tried to make a prison. Have placed walls and a gate. I have used this code

this setdamage 1;colpi = 0

to make the walls electric via trigger. If someone touch the wall, a sound of electricity comes around.

What goes wrong?

The second thing is, can i make a trigger size like the prison and if a prisoner try to escape that my US soldiers shoot him down? So if i put an OPFOR Soldier in a cell he doesn't get killed, only he has a gun. Same for all other units and peds.

And is there a good watchtower for the Guards?

Regards & Thanks

Share this post


Link to post
Share on other sites

Use a rectangular trigger for that.

On activation:

{ _x setcaptive true} foreach units in thisList

On Dea:

this setCaptive false

I don't think that ArmA detects if anybody touches a wall or so so it's going to be pretty hard to fix that.

A possible workaround could be make a rectangular trigger around the walls and use setdamage on act.

Share this post


Link to post
Share on other sites

You a German? :D

btw, i can't use this command. 1. It says that a ; misst between in and thislist. 2. If Enemy from outside get in my Guards will not shoot them down.

Share this post


Link to post
Share on other sites

Maybe something like this where only units that have no weapon aren't shot, unless hit in crossfire.

{if ( primaryweapon _x =="") then { _x setcaptive true}} foreach thisList

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  

×