Home   Help Search Login Register  

Author Topic: AI Opening doors  (Read 1011 times)

0 Members and 1 Guest are viewing this topic.

Offline terran4999

  • Members
  • *
AI Opening doors
« on: 28 Apr 2008, 04:08:30 »

How would you get a AI to open a door of a building?? Below is what I thought of that failed. "Hanger" was the name of the building. Any ideas???

Code: [Select]
this action ["opendoor", hanger]

Offline Gcfungus

  • Members
  • *
Re: AI Opening doors
« Reply #1 on: 28 Apr 2008, 08:37:28 »
1. You need the house to be the subject, not the player
2. The command needs to be animate, not action.

This would be the correct line (I think):
Code: [Select]
hanger animate ["doors1", 1]
Try playing around with that to get that to work.
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: AI Opening doors
« Reply #2 on: 28 Apr 2008, 14:57:39 »

Just tell the loon to go to a position in the building, if there are doors to be opened he should do it himself.


Planck
I know a little about a lot, and a lot about a little.