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 / feeling stupid to ask but.......

Author
Message
gozzy1999
13
Years of Service
User Offline
Joined: 11th Jun 2011
Location: in the closet
Posted: 12th Oct 2012 18:55
heya all.
i have once again got stuck in my long journey to understanding fpsc. but know i need to know how to get large dynamic entities to follow a waypoint.

what i am trying to do is get a normal pickup truck.
jump in the back,press a button and then the pickup moves forward.

but i have no luck

''Make sure your hands are clean before you point the finger''
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Oct 2012 19:14 Edited at: 12th Oct 2012 19:15
Quote: "but know i need to know how to get large dynamic entities to follow a waypoint."


The first thing is the FPE file for the entity has to have the following:

"ischaracter=1"

For example, we have a "rolling boulder" (courtesy of Rosstradamus) and in order to have it follow waypoints, I had to edit the FPE. It looks like the following:



The second thing is the model itself. In order to properly follow waypoints (using follow.fpi for example), the model itself may need to be exported with the 'skin & bone' export option, since characters are done this way. The model may need to be re-exported using this option.

Third, you will have to deal with collision and player association. This means you need to script the vehicle so that it knows when the player is on it and what to do from there. A good example of this is a lift and the script used for that.


Twitter: @NFoxMedia
elbow
13
Years of Service
User Offline
Joined: 3rd Dec 2010
Location:
Posted: 14th Oct 2012 21:43
Excellent explanation.Thanks Blackfox

Login to post a reply

Server time is: 2024-11-27 12:17:28
Your offset time is: 2024-11-27 12:17:28