Jump to content
JoMiMi

Editor - Tripwire activates on door opening or if a unit steps on it

Recommended Posts

Is there a way to get a tripwire to detonate when an object (e.g. door or AI) goes through it by scripting in the editor? If so, how?

Share this post


Link to post
Share on other sites
nameOfMine setDamage 1;

should work. As for the condition it can be anybody present in the needed area.

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, JohnKalo said:

nameOfMine setDamage 1;

should work. As for the condition it can be anybody present in the needed area.

This worked for AI and players, but is there a script that would detonate tripwires when it collides with a door?

Share this post


Link to post
Share on other sites

Don't think so. Maybe you can make it blow up when the door is opened and not when it collides with it  :f:

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, JohnKalo said:

Don't think so. Maybe you can make it blow up when the door is opened and not when it collides with it  :f:

How do you do that?

Also, should of pointed out earlier, but I'm kinda new to scripting.

Share this post


Link to post
Share on other sites

Have never done it myself and I am no scripter. I only make really simple ones. The above should help though. Otherwise the specialists can help. 

 

  • Thanks 1

Share this post


Link to post
Share on other sites

As a test, place the trip wire INSIDE the door and then order an AI soldier to enter the building.

  • Like 1

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

×