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 / Can you write a script for an invisible object that vanishes after a while?

Author
Message
New Comers Corner
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Dallas Ft.Worth USA
Posted: 26th Apr 2006 23:53
Actually, this is two fpi script questions.

One, how do you make a delay, which will only do the action
for a determined time, ie, decals that display for a while, or
fires that stop burning, in other words, timer.

Two, how would you make an invisible object, to block a corridor
for a while but later vanishes so the player (or enemys) can walk
into the room?

Student Programmer
Gam3r
18
Years of Service
User Offline
Joined: 15th Mar 2006
Location:
Posted: 27th Apr 2006 01:31
im not writing out the fulll script but example

timergreater=500:"action",timergreater=1000:"action", next state

probably isnt much help to you bu it isnt a difficult language

my forum-http://gamersground.net/forum/index.php
Tom0001
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location:
Posted: 27th Apr 2006 02:10
Yes, very difficult, i'm still trying to learn it myself.

Tom

New Comers Corner
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Dallas Ft.Worth USA
Posted: 27th Apr 2006 18:26
Actually my timers are beginning to work, since it only has two commands.

timeron and timergreater=1000 (or your choice of number

Like this,

:state=0,plrdistwithin=300:timeron, state=1

translates to "If state = 0 and the player is within 300 goodies of your entity" where state 0 is kind of like saying line 0
then start the timer and transfer control to line 1. After the second colon in a line is what that line does.

:state=1,timergreater=1000:sound=audiobank\user\laugh.wav

...translates to when the time has waite a 1000, play a laugh wav. If you put on in that user folder. It only takes a couple days of reading scripts and tutorials on them to begin to understand it. Its not a difficuly language at all.

Student Programmer
New Comers Corner
18
Years of Service
User Offline
Joined: 24th Mar 2006
Location: Dallas Ft.Worth USA
Posted: 27th Apr 2006 18:27
Ha, I meant "difficult" I do have problems typing. It looks like my difficult language is English.

Student Programmer
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Apr 2006 19:44
Looks like you'll be helping others with custom scripts in no time.

Crazy Grandpa

Login to post a reply

Server time is: 2024-03-29 13:17:02
Your offset time is: 2024-03-29 13:17:02