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 / Script questions

Author
Message
syh
7
Years of Service
User Offline
Joined: 16th Aug 2017
Location:
Posted: 1st Sep 2018 06:44
1.If I want to press P to pick up a weapon,what should I do?(I can't find threads about this)
2.If I want to weapons appear randomly(in a layer),what should I do?
3.If I want to press G to throw weapons on the ground(turn HUD into VWEAP),what should I do?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 1st Sep 2018 18:22
syh 1 - The use another method to pickup a weapon as when hitting a key is simple. Here is a link to just something like that....
https://forum.thegamecreators.com/thread/186330 Look at his scripts. You can easily change which key to use
by changing the "scancodekeypressed=x" code ( P is scan-code #25 )

2 - The only way to make weapons to "seem" to appear randomly is to have them "triggered" when a player moves into a certain area.
You can also use the "time delay" to appear settings in a weapons property settings

3 - You can't turn a weapon HUD into a Vweap, they are two separate entities/huds. But adding the commands "playerdropcurrent & removecurrentweapon"
will work just fine. Use "scancodekeypressed=34" to use the "G" key

Here is a link to the Syntax list with all the commands you might need
https://forum.thegamecreators.com/thread/180924

My games never have bugs. They just develop random features..
Lots and lots of random features...
syh
7
Years of Service
User Offline
Joined: 16th Aug 2017
Location:
Posted: 9th Sep 2018 15:37
So if I want to the player to drive some vehicles,what should I do?
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 9th Sep 2018 18:32
syh
Quote: "want to the player to drive some vehicles"

Two choices, have the entity attach to player and offset camera to make player seem inside, or second, use a simple hud system.
The hud would be a total custom made and scripts. Doable, but all custom.
Make your vehicle, when player is near vehicle hide the entity and have a custom hud appear.
I made one with a steering wheel that would turn as player moved. With working dial indicators.
My games never have bugs. They just develop random features..
Lots and lots of random features...

Login to post a reply

Server time is: 2024-11-21 12:46:16
Your offset time is: 2024-11-21 12:46:16