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 / My First Script - Help

Author
Message
Mr Makealotofsmoke
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: BillTown (Well Aust)
Posted: 28th Apr 2007 14:00
Hi
i made a entity and i animated it with 2 keyframes
this is my script


and it doesnt work
it is suppose to be when u press enter(return) it makes the animation go, and play a sound when its done
then if u press enter)return) again it goes back to normal

help please

Thanks


Mods, its 500x100, so you cant tell me its bigger than 600x120
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 4th May 2007 04:23
what doesn't work i think that when you use animate it uses frame 1 and 2 so is that your problem

you can live with a man for all his days, but you really find what he really is like when hold him over a volcano
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 4th May 2007 22:06 Edited at: 4th May 2007 22:08
Quote: ";Artificial Intelligence Script

;Header

desc = Use Clapper Board

;Triggers

:state=0,PLRDISTWITHIN=50,SCANCODEKEYPRESSED=28:state=1
:state=1,ANIMATE=2,SOUND=$0:state=2
:state=2,PLRDISTWITHIN=50,SCANCODEKEYPRESSED=28:state=3
:state=3,ANIMATE=1:state=0


;End of Script"



State=1 is all wrong. Animate=2 and Sound=$0 are actions not conditions.

The same goes for state=3, Animate=1 should be an action.

And if you want the plr to press enter to do anything in your game, just use the plrusingaction=1 command. Scancodekeypressed= is really for alpha/numeric keys.

Best of luck.

Login to post a reply

Server time is: 2024-11-23 15:43:55
Your offset time is: 2024-11-23 15:43:55