Scripts / How to Add waypoint to an Entity

Author
Message
js
8
Years of Service
User Offline
Joined: 24th Sep 2015
Location:
Posted: 3rd Oct 2015 10:49 Edited at: 3rd Oct 2015 11:52
Hi, i just want to ask on what is the script that i need to add to my Entity (example a Crate or a Car ) in order for it to follow a waypoint ? and also , i would like to know where would i put the script, would i put it in _init or in _main function?

i have tried adding this script to my entity , (static - no , ismobile - no) , but it still doesn't work

PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 3rd Oct 2015 21:28
Only character entities will follow waypoints.

In the FPE file for your car add ischaracter = 1 to the file under the identity section and save it.

Might need one bone in it to do this, and you will have to maybe set the shader to basic_character.

Erase the .dbo and .bin file and test it again.

you will need a way point capable script such as the soldier scripts, or even one called civilian if you have it around. If you don't it is in smallg thread somewhere.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

js
8
Years of Service
User Offline
Joined: 24th Sep 2015
Location:
Posted: 4th Oct 2015 17:03
Thanks Pirate Mike! , it's now working , however, the score that i have added on the script doesn't seem to work, can you please help me out on that one too? ..
PM

Login to post a reply

Server time is: 2024-05-05 04:35:01
Your offset time is: 2024-05-05 04:35:01