-Trigger 0 Posted March 28, 2004 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 Share this post Link to post Share on other sites
MrZig 0 Posted March 28, 2004 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
-Trigger 0 Posted March 28, 2004 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
MrZig 0 Posted March 28, 2004 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
-Trigger 0 Posted March 29, 2004 cool works good but how do u make it work for multiple vehicles? Share this post Link to post Share on other sites
MrZig 0 Posted March 29, 2004 Put this in each of their init line this addAction ["repair","repair.sqs"] Share this post Link to post Share on other sites
-Trigger 0 Posted March 29, 2004 thanks mrzig u helped me a lot Share this post Link to post Share on other sites
-Trigger 0 Posted March 30, 2004 still need some help with the other stuff tho Share this post Link to post Share on other sites
MrZig 0 Posted March 30, 2004 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
ZiRo 0 Posted April 12, 2004 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
HuNtA 0 Posted April 16, 2004 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
MEDICUS 0 Posted April 17, 2004 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  Mfg MEDICUS Share this post Link to post Share on other sites
C4P741N 0 Posted April 18, 2004 @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  Captain Share this post Link to post Share on other sites