July 31, 2010, 05:13:07 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Check out the FAQ
Advanced search
Pages: [1]   Go Down
Print
Author
[EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU]
Topic: Script  (Read 677 times)
The Priest
Newbie
*

Ascension Level: 0
Offline Offline

Posts: 32


View Profile Email
« on: February 08, 2010, 11:09:28 am »

this is kind of SG off-topic question but im gonna ask anyway Tongue ... 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 Cheesy ... please tell me if it is possible Smiley

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 Cheesy

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
Developer
***

Ascension Level: 21
Offline Offline

Posts: 231


View Profile
« 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  tongue
Logged

Deepsmeg
DSF Productions
Administrator
*****

Ascension Level: 21
Offline Offline

Posts: 508

Codemonkey


View Profile WWW Email
« 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 Offline

Posts: 32


View Profile Email
« 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 Tongue
 
Logged
Deepsmeg
DSF Productions
Administrator
*****

Ascension Level: 21
Offline Offline

Posts: 508

Codemonkey


View Profile WWW Email
« 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 Offline

Posts: 32


View Profile Email
« Reply #5 on: February 09, 2010, 02:27:46 pm »

Thx for help i'll figure out something Smiley 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
DSF Productions
Administrator
*****

Ascension Level: 21
Offline Offline

Posts: 508

Codemonkey


View Profile WWW Email
« 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.
Pages: [1]   Go Up
Print
Jump to:  

Black Rain by Crip Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC XHTML | CSS
The Stargate Modification is a scripted add-on for Operation Flashpoint, ArmA and ArmA II,
it has been unofficially created as a way for fans to explore the Stargate as it is portrayed in the shows.
This add-on is completely unofficial and though we have gone through great lengths to mimic functions as shown in the shows
it is down to our own interpretation and may not be true to what SCI FI Channel or Metro-Goldwyn-Mayer Studios Inc intended.

Stargate, Stargate SG-1, and other related names are Copyright Showtime Inc., SCI FI Channel and Metro-Goldwyn-Mayer Studios Inc.
Stargate, Stargate SG-1, Stargate Worlds and other related names are Trademarks of Metro-Goldwyn-Mayer Studios Inc.

All material on this website is for non-profit use and completely unofficial; please do not edit the contents of these files.