modifying the car template script

Posted By: xbox

modifying the car template script - 11/06/09 03:14

Can someone please modify the car template to allow the car and wheels to only travel on the x and z axis? i am using the default script so i have no need to post the code.
Posted By: Redeemer

Re: modifying the car template script - 11/06/09 03:32

Upon initiation have the entity store it's Y position in a SKILL. After every c_move() call, simply set the entity's Y position to this stored value. The entity will thus move along the X and Z axis but not along the Y axis.
Posted By: xbox

Re: modifying the car template script - 11/06/09 04:43

I'm, sorry but could you please show me an example of what you mean. I can't find any c_move calls at all.
Posted By: Redeemer

Re: modifying the car template script - 11/06/09 15:25

Scripts use functions like c_move to move entities around in your game. However, the template scripts you're using may have older names for the c_move instruction. Try looking for "ent_move" or just "move", instead. It's basically the same thing, just a different name.

BTW, remember to backup your template scripts before you make any changes to them.
© 2023 lite-C Forums