OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flauta on 18 Jun 2005, 00:16:56

Title: How To...
Post by: Flauta on 18 Jun 2005, 00:16:56
I have a list of some Trheads wich i Still have Confusing dobuts... I dont know if them has been descused yet...

Those are:
HOW TO..:
             *Set the direction.. but on the "other axis".. I mean nose up and tail down.. etc (Mi english sucks.. maybe "pich angle"?)
             *Setpos wholle scuad in a predefined position.. activated by a trigger
             *Make a Forced landing of a plane.. (like it has Stall product of a Turbine failure)
             *do "fake" explotions... like a normal explotion but whitout the dammage thing...
             *do Explotions in mid air...
             *Launch missiles of any unit.. but in a sepcifed time adn in a if it is possible in a speciffed direction...

Thanks anyway!!
Title: Re:How To...
Post by: qqqqqq on 18 Jun 2005, 01:35:53
*  "Pitch angle" is correct.     A difficult problem in OFP.    There might be a function - check.

* Can't be done directly.   You have to setpos each loon seperately.

*  planename setFuel 0

* Fake explosions will be tricky.   Who do you want to be undamaged?

* camCreate two shells at the same spot in midair.   They will explode.    A shell has to hit something before it goes off and another shell (or the ground) works fine.

* Try the fire command.


Title: Re:How To...
Post by: Pilot on 18 Jun 2005, 01:48:45
@Pitch
Can't be done, sorry.

@Setpos whole squad
Try this:
{_x setpos getpos OBJECT} foreach units GROUP

@Forced Landing
What qqqqqq said

@Fake Explosions
Try camcreating a HEAT shell.  These shells will still do dammage, but you have to be very close to them:
_shell = "heat125" camcreate getpos WHATEVERPOS

@Midair Explosions:
What qqqqqq said

@Launched missiles
I don't think I understand what you are asking

-Student Pilot
Title: Re:How To...
Post by: Flauta on 18 Jun 2005, 01:56:55
When I said the Plane thing I was meaning some kind of "fast setposing" script... and the one who has to not be damage is the plane :P or whatever it be near... I ask for something like a Smoke script... Plane setfuel 0 isnt' good, beacuse the AI usess to change directions... and The fire command sucks (becuase the AI sometimes sucks..) :P see this (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=24236) thread.. jeje the Fire comand is useless somethimes... I was wondering there is a Way to Script the Missil/Projectile... like Camcreating it?  :p

@Student Pilot
The same of this Thread (http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=24267;start=%200#lastPost)... but not specaily whit AA Soldiers.. whit whatever kind of launchinable missil
Thanks anyway ;D