This entity is called "POINTER001"
When the this entity is spawned (trigger zone - Entity set to "spawn at start =0 and spawn after delay = 1"), this code is supposed to position the entity at players position (by locking the entity to player) then releasing the lock after 3 seconds. Then the entity is supposed to move towards a "target" which is another entity not too far away marked as "TARGETPOINT001" which as a dynamic entity and In the meantime players view is locked to the entity that is moving.
So far In this code, I get as far as locking the view to the entity but it does not want to move towards the target.
;Artificial Intelligence Script
;Header
desc = Pointer
;Triggers
:state=0:STATE=1
:state=1:SETTARGETNAME=TARGETPOINT001,etimerstart,LINKTOPLR,state=2
:state=2,ETIMERGREATER=3000:FREEFROMPLR,MOVETOTARGET=0,state=3
:state=3:PLRPOINTATOBJECT=POINTER001,state=3
;End of Script
Entity FPE:
;header
desc = POINTER
;ai
aiinit = appear1.fpi
aimain = TheMoveToTargetScript.fpi
aidestroy = disappear1.fpi
;spawn
spawnmax = 0
spawndelay = 0
spawnqty = 0
;orientation
model = crate_f.X
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
defaultstatic = 0
materialindex = 4
collisionmode = 4
;statistics
strength = 25
explodable = 0
debrisshape = 5
;visualinfo
textured = Black.png
effect =
castshadow = 0
Isenstadt Studio: http://isenstadtstudio.com/
Composers Page: Milesthatch.com