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 this be done?

Author
Message
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 29th Dec 2008 18:52 Edited at: 29th Dec 2008 21:29
I have a couple of questions.

Can I, by using a script, delete the gravity of a entity if it is in a zone?
And can I change the player's speed through scripting?
This is the really last one!
Can I change the soundset of the player through scripting?

- This isn't a request!!


Red Eye - The Game: Work In Progress - W.I.P.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 29th Dec 2008 22:21
You can get rid of gravity for an entity using "NOGRAVITY". Unfortuantely, you can't turn the entity's gravity back on.

The player's speed can only be set in the Player Start Marker and cannot be changed through scripting in official FPSC versions.

The soundset of the player cannot be changed through scripting either.


The one and only,



Click Me, Please!
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 30th Dec 2008 12:31
In Flantlanders EditPad Program there is one thing:

If you go above the mouse over function:
sound=

you will get this:

Quote: "plays a sound specified by the X filename - Use $0 to specify soundest"



Red Eye - The Game: Work In Progress - W.I.P.
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 30th Dec 2008 12:32
but how can i use that?


Red Eye - The Game: Work In Progress - W.I.P.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 30th Dec 2008 13:31
you would use that to play a specific sound in the audiobank. the soundset is something set in the editor in the Sound0 property in the entity's properties.

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 30th Dec 2008 13:46
ok thanks


Red Eye - The Game: Work In Progress - W.I.P.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 30th Dec 2008 14:09
no problem

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein

Login to post a reply

Server time is: 2024-11-24 16:45:57
Your offset time is: 2024-11-24 16:45:57