The Priest
Newbie
Ascension Level: 0
Offline
Posts: 32
|
 |
« on: February 08, 2010, 11:09:28 am » |
|
this is kind of SG off-topic question but im gonna ask anyway  ... is there any script that horizontaly rotates object ?? ... I mean ... let's say that I've got an object .. that lookes like this: - .... and I want to rotate it .. lets say ... by 90 degrees ... so it will be like this: I ... if you understand  ... please tell me if it is possible  thx and I'm a STUPID man becouse i want that script in OFP ... and I posted it to the ArmA help center ... please kill me somebody  And the valiant shall be rewarded by the virtues of the administrators and they shall be set back onto the path of truth and enlightenment, away from their erroneous ways. Hallowed are the admins.
|
|
|
|
« Last Edit: February 09, 2010, 09:49:59 am by Deepsmeg »
|
Logged
|
|
|
|
|
icewind.123
|
 |
« Reply #1 on: February 08, 2010, 12:06:27 pm » |
|
Using the setvector script command this would be possible for ArmA2, I flipped cars this way. But for OFP I have no idea... but then again I'm not much of a scripter 
|
|
|
|
|
Logged
|
|
|
|
|
Deepsmeg
|
 |
« Reply #2 on: February 08, 2010, 02:13:03 pm » |
|
I'm not sure of a way to do that in OFP.
Someone (Apollo?) made a Stargate prop which was at an angle for OFP, and that was done by taking the model and rotating it and resaving.
What are you trying to do?
|
|
|
|
|
Logged
|
http://tinyurl.com/dsf-faq <--- Updated 26/04/2010
Master Bra'tac beat Apophis in a game of chess. Using Mr Bun the Baker. When Master Bra'tac fell from above and failed to learn to fly on the way down, Hannor Mir still became a street pizza.
|
|
|
The Priest
Newbie
Ascension Level: 0
Offline
Posts: 32
|
 |
« Reply #3 on: February 09, 2010, 05:50:12 am » |
|
can you please write down the "setvector" script ... becouse some scripts work in both I think ... like setpos for example ... and what i'm trying to do .. well .. i was building a WWII bunker from concrete blocks and ... then I've got an idea .. what about building a spaceship from these blocks ... with the whole interior
|
|
|
|
|
Logged
|
|
|
|
|
Deepsmeg
|
 |
« Reply #4 on: February 09, 2010, 09:48:35 am » |
|
I'm 99% certain the GetVector and SetVector methods were added to the language in ArmA I. Their usage would be similar to GetDir) and SetDir) except (iirc) a 3 element array is returned rather than a number. You would therefore stick GetVector into a variable and then SetVector it (bob SetVector [(_q select 0) + 90, _q select 1, _q select 2]) or something to that effect. If you go to OFPEC and view the comref, it'll have more detail
|
|
|
|
|
Logged
|
http://tinyurl.com/dsf-faq <--- Updated 26/04/2010
Master Bra'tac beat Apophis in a game of chess. Using Mr Bun the Baker. When Master Bra'tac fell from above and failed to learn to fly on the way down, Hannor Mir still became a street pizza.
|
|
|
The Priest
Newbie
Ascension Level: 0
Offline
Posts: 32
|
 |
« Reply #5 on: February 09, 2010, 02:27:46 pm » |
|
Thx for help i'll figure out something  and .. I've got another question ... Is there any way to make unit ... "unkillable" becouse the script " allowdamage" don't work in OFP 1.86 and higher ... and i need that for my D-Day mission ... any ideas ??
|
|
|
|
|
Logged
|
|
|
|
|
Deepsmeg
|
 |
« Reply #6 on: February 09, 2010, 03:41:58 pm » |
|
Have a script constantly SetDammage it to 0 Or, if you're making an entire new unit, just set it to have a tonne of health
|
|
|
|
|
Logged
|
http://tinyurl.com/dsf-faq <--- Updated 26/04/2010
Master Bra'tac beat Apophis in a game of chess. Using Mr Bun the Baker. When Master Bra'tac fell from above and failed to learn to fly on the way down, Hannor Mir still became a street pizza.
|
|
|
|