Jump to content
Sign in to follow this  
kocrachon

Make them open/close doors?

Recommended Posts

So I looked through the actions list and saw stuff like making them light fires, stroke guns, and so forth. But is it possible to make AI units open and close doors?

Share this post


Link to post
Share on other sites

Also I know I asked a similar question already but the other method doesnt work..

How do I make a fireplace light itself? I want it to all of a sudden start on fire with out me needed to be there...

Share this post


Link to post
Share on other sites

These are the commands you are looking for: animate and inflame.

to get AI to open/close the door you will most likely have to use a way point or a trigger with the On Act. code to open/close the specific door. You will also have to define a specific building/door or use nearestObjects or something similar to "find" the door. Loka the bottom of the notes in the Biki for which animation and states to use.

For the fire, just name the fire object and then use inflame in a script to light it.

Share this post


Link to post
Share on other sites

place the fire, and put:

this inflame true

in it´s init line.

And once for all:

Use the search function of the forum, we´re not here to be your personal supporters of your laziness and furthermore there is a habit here to say "Thank you" if someone spent some time answering your problem.

Share this post


Link to post
Share on other sites

And if you think through plenty of my old posts I have a tendency to thank people who dont tend to feel the need to act hostile twoards other posters. I did do the search function when it came for the doors. While I already had a post up I felt it wouldn't be a huge issue to include another question in because While I do understand the inflame part, I wasn't sure if it would be an action still or what. Because I was trying to do the action [inflamed, fire1}; in the trigger, but that was not working. Thus why I asked again...

Second, thanks Loyalguard, but what would the action be in the waypoint or trigger to open or close the door? I am using the 1.02 editor update and I manually placed a building that has a door, and it only has one door. So mainly what I am wondering is once I do find the door whats the action command to make them close that door? Or is there a command to make the building close the door itself? Because if ther eis I can just set a trigger activated once the guy passes through the door way and have it close itself.

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  

×