Jump to content
Sign in to follow this  
Rob

AN EXTREMELY HARD SCRIPTING Q

Recommended Posts

is there any way of attaching a red flare to the inside of a heli even when its moving, and then when triggered it changes to a green one.

yes u guessed it. i want to try and give the atmosphere of the red and green light inside planes that when turn green means to eject.

Share this post


Link to post
Share on other sites

Give me a day or 2 and I'll see what I can do wink.gif

Share this post


Link to post
Share on other sites

i thinku need a break after the work u have done for me MP!! lol

Share this post


Link to post
Share on other sites

fl_red - red flare

fl_green - green flare

trigg_act - 0 on beggining, 1 when trigger is activated

jeep - empty jeep somewhere on the map

heli - helicopter

-------------------------------------------------------------

fl_green setpos getpos jeep

#red_move

? (trigg_act == 1) : goto "green"

fl_red setpos getpos heli

~0.05

goto "red_move"

#green

fl_red setpos getpos jeep

#green_move

fl_green setpos getpos heli

~0.05

goto "green_move"

---------------------------------------------------------

I did not try out the script, but I thing it should work...

Share this post


Link to post
Share on other sites

could u make a lil map with it on to see if it works then if it doesn could u send it to me thx

Share this post


Link to post
Share on other sites

Looks about right HappyG (i did'nt test yet. just looking).

Good Man!

Share this post


Link to post
Share on other sites

MP u know how i am with scripts could one of u try it out and try to put it in a mini map for me?

Share this post


Link to post
Share on other sites

Aww... Looking at this again tells me that it should start with a simple player exec "whatever.sqs".

OR [fl_red,fl_green,........ Na... never mind.

Just put an empty jeep and your chopper... Oh s**t....

But the flare is going to be floating in the middle of the chopper.....

Let's see... fl_red setpos getpos heli... :confused: :confused:

I can't remember the command to move an object in relation to another (i.e put it where the chopper is but a bit higher and to the left). S'HIT!!! Come on Brain..

(knock knock). d*amn.

If anyboby know's it please feel free to refresh my memory...

Share this post


Link to post
Share on other sites

I think it's

flareWhatever setpos [getpos heli, getpos heli, getpos heli +1]

to raise it a bit higher, or something like that. Is that what you mean?

Also isn't there an add/remove object command added now? I thought I read that somewhere.

If it exists it would make it a bit easier. Just add item, time delay, remove item, add item, time delay, remove item.....in a loop.

(Edited by amos m at 9:23 pm on Dec. 23, 2001)

Share this post


Link to post
Share on other sites

UUUMM STILL CONFUSED PEOPLE..... CAN'T U PUT IT IN A MISSION LIKE I SAID!!!!!!!!!!!!!!!!!!!!!!!!!?

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  

×