I obtained this code from the ocfpscguide.pdf that is on the FPS Creator web site.. It worked but the player would bounce around the level and then fall off the world. " On some maps " On others the script seemed to work ok, so to stablize the code I added the second :state=2:unassociateplayer that stops the player dead, and they can move about.
;Artificial Intelligence Script
;Header
desc = Player move to... (entity)
;Triggers
:state=0,plrdistwithin=10:state=1
:state=1:plrmoveto=Wall1
:state=1:state=2
:state=2:unassociateplayer
;end of script
; by xplosys. state=2 added by meows so it will work in the latest FSP Creator Ver 1.03 to Ver 1.04
;MovePlayerToLocation.fpi
; Place 2 dynamic entities in your level, one where the player moves from
; and another where the player will move to. Make sure the move to entity
; is on the floor and has enough room for the player. Sending the player
; to an entity on a wall could cause problems.
; Use this script as the From entities AI Main and replace your To entity
; name below where is says Your_to_entinty_name. Be sure there is only
; one entity with that name.
Life is a short trip to another world