Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Is there any script to move entities?

Author
Message
Spider25
17
Years of Service
User Offline
Joined: 20th Jul 2007
Location:
Posted: 20th Jul 2007 20:31
I'm looking for a script where you can move an entity left or right by clicking a switch. Can anyone help me?
Thanks
Deadly Massacre
17
Years of Service
User Offline
Joined: 1st Jun 2007
Location: Spain
Posted: 21st Jul 2007 12:11 Edited at: 21st Jul 2007 12:12
Yes. Try using this script created by "xplosys":

;Artificial Intelligence Script
; by xplosys

; 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.

;Header

desc = Player move to... (entity)

;Triggers

:state=0,plrdistwithin=50:state=1
:state=1:plrmoveto=Your_to_entinty_name

;end of script

Where says "Your_to_entinty_name", put the name of an entity where the player is going to be transported.

NOTE: THE ENTITY WHERE THE PLAYER IS GOING TO BE TRANSPORTED MUST HAVE THIS SCRIPT:

;Artificial Intelligence Script

;Header

desc = Ghost Script

;Triggers

:state=0:coloff

;End of Script

Login to post a reply

Server time is: 2024-11-23 20:28:25
Your offset time is: 2024-11-23 20:28:25