OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: terran4999 on 28 Apr 2008, 04:08:30

Title: AI Opening doors
Post by: terran4999 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]
Title: Re: AI Opening doors
Post by: Gcfungus 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.
Title: Re: AI Opening doors
Post by: Planck 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