ok. if u want a door that opens wen the player is near. i wound not take trigger. i would try it like this:

Code:
action door_1() // attach this action to an entity at you want as door

{
while (!player) {wait (1);} // wait until the player is loaded
while (vec_dist (player.x, my.x) > 100)  // wait until the player comes close to this entity
       {
       wait (1);        
       }
       dosomethinghere(door); // here ur function that rotates the door, do ur put u change here already ur doors pan.
}



PS: But i highly recommend u read the AUMs, starting at #67. its really helpful.

Last edited by chris_oat; 08/20/09 11:31.