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 / Player immoble on a platform

Author
Message
the ultimate gamer
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 26th Apr 2007 03:27
Alright i have tried all ways of doing this without scripting but i cant get it to work. Ive never scripted before and I think i may know an answer.

I want the player to stand on an object following a waypoint(such as a antigrav platform) and not beable to move off of it(no im not making walls). Could I uce the Plrass command to do this? If so how. Any help would be greatly appriciated!

Thanks to all who try to help,
Ultimate Gamer

P.S.- I have tried setting the speed to zero but since update 1.03 (I Belive) it doesnt go lower than about 50.

hi
Mickm
19
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 26th Apr 2007 06:13
I am no script wizard, but by looking at my manual what about using the FREEZE command?

FREEZE=X | Stops the entity from moving.

Ill try some stuff for you and post my results. As I been meaning to learn scripting for awhile. Perhaps someone will beat me to the correct answer

http://www.gamestack.org
http://onlinenotes.gamestack.org
http://onlinebookmarks.gamestack.org
Mickm
19
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 26th Apr 2007 07:12
Well I sorta got it to work. Im a NOOB when it comes to scripts so bare with me.

FPI

Steps

Issues


Hope that works for you. I know its not the best, but perhaps someone else could answer this one for you

http://www.gamestack.org
http://onlinenotes.gamestack.org
http://onlinebookmarks.gamestack.org
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th Apr 2007 18:53 Edited at: 26th Apr 2007 18:55
Your on the right track, but yeah, the zone is going to be an issue.

This is a variation of the follownorotate.fpi

Quote: "
;Artificial Intelligence Script

;Header

desc = Follow Waypoints with player locked (platform)

;Triggers

:state=0,plrdistwithin=40:state=1,norotate=1
:state=1,plrdistfurther=41:plrmoveto=platform
:state=1,waypointstate=0:animate=2,waypointstart
:state=1,waypointstate=3:animate=2,waypointnext
:state=1,waypointstate=4:animate=2,waypointrandom
:state=1,waypointstate=5:state=2
:state=2:none

;End of Script
"


Name your platform "platform" or change the name in the script.
The platform waits for the player to get on before moving.
Once on, the platform follows the waypoints normally.
If the player tries to step off, he is moved back on.
When the platform reaches waypoint state 5 (end of waypoint), the player can step off.

Best.

I'm sorry, my answers are limited. You must ask the right question.

the ultimate gamer
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 26th Apr 2007 23:12
Thanks.

I want the player to beable to rotate though, would I just delete the first line? or does it already let you rotate?

Sorry im a total newb at scripting

hi
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th Apr 2007 23:25
The norotate command refers to the platform, not the player. Yes, the player can rotate freely.

Best.

I'm sorry, my answers are limited. You must ask the right question.

the ultimate gamer
18
Years of Service
User Offline
Joined: 30th Jul 2006
Location:
Posted: 27th Apr 2007 04:59
Thank you very much. Your help is greatly appriciated!

hi
xplosys
19
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Apr 2007 05:20
Sure. Hope you'll show us your work later.

Best.

I'm sorry, my answers are limited. You must ask the right question.

Login to post a reply

Server time is: 2025-05-19 14:15:26
Your offset time is: 2025-05-19 14:15:26