Home   Help Search Login Register  

Author Topic: ai opening doors  (Read 472 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
ai opening doors
« on: 16 Jul 2003, 19:12:55 »
how would you get AI to open a door?

Here is the situation:

A soldier with move waypoints walks up to a door.

When he reaches the waypoint, it will execute a script that opens the door.  (Takes place at that little base on Nogova island just up the road from the airport, at the gatehouse of this base.)

After the door is opened, he will walk into the building, close the door, and open another, then close that one, than proceed on his patrol.

Offline Blanco

  • Former Staff
  • ****
Re:ai opening doors
« Reply #1 on: 16 Jul 2003, 20:42:12 »
To open a door use the animate command

I dunno what id  the house have ... (show id, u know?)

but e.g 12512

the command is :

(object 12512) animate ["door",1]   ---->  opens it

Put that in the in the waypont's on activation field.

When he's inside the building :

(object 12512) animate ["door",0]   ---->  closes it


I'm not sure about the name "door", tho.  :P





 
Search or search or search before you ask.