Jump to content

Sign in to follow this  
-Trigger

Racing scripts

Recommended Posts

I searched and couldnt find anything... I need to know how to add a action in the action menu named repair to have the vehicle repair itself 10 seconds after you click it, also how to make a finish line with checkpoints you have to go through to win. And if its possible the code for a checkered flag. If anyone can help with any of these it'd be appretiated biggrin_o.gif

Share this post


Link to post
Share on other sites

vcl addAction ["repair","repair.sqs"]

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

;;repair.sqs

_vcl= _this select 0

_activator = _this select 1

_action = _this select 2

_vcl removeaction _action

_activator groupchat "repairing vehicle"

~10

_vcl setdammage 0

exit

Share this post


Link to post
Share on other sites

when i use that i repair and the vehicle crumples and kills the driver..lol i replaced vcl with this in the vehicles init line... is that correct? I get error missing ) when i use the action.

Share this post


Link to post
Share on other sites

Sorry I was in a biiiig hurry to get out of the house, fixed ver. try it now.

Share this post


Link to post
Share on other sites

cool works good but how do u make it work for multiple vehicles?

Share this post


Link to post
Share on other sites

Put this in each of their init line

this addAction ["repair","repair.sqs"]

Share this post


Link to post
Share on other sites

Do you want alot of people to go to the waypoints? or just 1 person?

I guess you could use something like

checkpoint1 = true

when he passes through, and

checkpoint2 = true

checkpoint3 = true

And for the finish put

?Checkpoint1 && checkpoint2 && checkpoint3

but you would have to make each (boolean is it?) local to the driver only, so it could be false on someone and true on someone else.

I think that's possible.

Share this post


Link to post
Share on other sites

Can i just point out:

the ai in ofp isnt for racing, the drivers do not race, you can easily go faster than the ai on any road - because th ai corners like shit + they dont put the peddal on the floor.

-ZiRo

Share this post


Link to post
Share on other sites

then do it in MP

Go on OFPEC forums under scripts beta testing, and youll see my NOS script, if that helps at all

Share this post


Link to post
Share on other sites

Afaik there was a "Racing Mod" released some times ago. It had a lot of nice racing-missions included with very nice scripts.

The player saw his "position in the field", the Nr of "rounds to go", his time at the checkpoint and so on. Perhaps some of this will help you.

I'll try to find a dl-link for this mod.

Edit:

Here it is: Click Me  smile_o.gif

Mfg MEDICUS

Share this post


Link to post
Share on other sites

@Hunta: Is there a way to add your NOS script permanently to an addon? I've got a suped up black, chrome rimmed HMMWV with the engine of a Viper that I'd like to add this to, but I don't want it to have limited fuel. It's just a car I like inspecting islands at ground level with  tounge_o.gif

Captain

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×