Hi all,
I have a platform, that when the player jumps on it, it opens a door. When they get off it closes it (it's like a puzzle kinda thing).
the way to keep the door open so they can get out is to place any entity on the platform so it holds down the platform, if you know what I mean...
I have this script here, linked to a remote door:
;Artificial Intelligence Script
; Header
desc = open on object or player positioning
;Triggers
;PLAYER:
:state=0,plrwithinzone=0:activateifused=0,state=1
:state=1,plrwithinzone=1:activateifused=1,state=5
:state=1,plrwithinzone=0:activateifused=0,state=5
;OBJECT:
:state=5,anywithinzone=0:activateifused=0,state=6
:state=6,anywithinzone=1:activateifused=1,state=5
:state=6,anywithinzone=0:activateifused=0,state=0
;End of script
I don't understand why it doesn't work? The If Used field definitely has the remote door name. The script is definitely assigned to the Main AI field of the platform, which is dynamic.
I got this to work with another copy of the similar script, so I KNOW the problem lies in my modified copy:
This copy was taken from the Community Guide:
;Artificial Intelligence Script
;Header
desc = open up
;Triggers
:state=0,anywithinzone=1:activateifused=1,state=1 :state=1,anywithinzone=0:activateifused=0,state=0
;End of Script
Now that script worked... but I have modified mine so that not only does any entity open the door, but also the player...
Could you help?