Jump to content
Sign in to follow this  
MrZig

Need a script for setfuel please

Recommended Posts

Hi, I'm almost done my mission, but I need a way to keep the helicopter from ever loosing fuel.

So I was thinking a script with "heli setfuel 100" but that only works once, how could I make it loop?

Thanks smile_o.gif

Share this post


Link to post
Share on other sites

Make an sqs file.

Quote[/b] ]

#loop

heli setfuel 100

goto loop

Something like that...

if its not goto loop , try

#goto loop

Share this post


Link to post
Share on other sites

Well, I just tried

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

#start

heli setfuel 100

goto "start"

and I think that works, and thanks smile_o.gif

Share this post


Link to post
Share on other sites

You might want to add a delay in there too...so that it doesn't keep running through out the entire mission. That way you can free up more cpu power for the rest of your scripts and game play.

Try

#start

heli setfuel 100

~240

goto "start"

that way it refuels itevery 4 min.

it would be one really small gas tank to run out of gas that quickly

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  

×