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 / Open a door at a certain time

Author
Message
Hatsu
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location:
Posted: 19th Feb 2005 00:14
My first script and very simple. Opens a door after a certain time. Commented it well so that people new to this like me can get to grips with the scripting language.


;Artificial Intelligence Script

;Header

desc = Door opens after certain time

;Triggers

;if in original state and timer greater then 3 seconds, it sets the state to 1, animtion 0 to to beginning and plays open door sound

:state=0,timergreater=3000:state=1,setframe=0,sound=$0

;if state=1 it increasse the frame of animation 0

:state=1:incframe=0

When animation 0 has finished it sets the state to 2 and turns collisions off so the player can walk through the door.

:state=1,frameatend=0:state=2,coloff

;End of Script

Login to post a reply

Server time is: 2024-04-23 21:19:55
Your offset time is: 2024-04-23 21:19:55