ArmA Stargate Mod Forums

  • February 08, 2012, 07:47:00 pm
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Check out the FAQ

Pages: [1]   Go Down

Author Topic: Script  (Read 1679 times)

The Priest

  • Newbie
  • *
  • Ascension Level: 0
  • Offline Offline
  • Posts: 32
    • View Profile
Script
« on: February 08, 2010, 07:09:28 pm »

this is kind of SG off-topic question but im gonna ask anyway :P ... 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 :D ... 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 :D

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, 05:49:59 pm by Deepsmeg »
Logged

icewind.123

  • Developer
  • ***
  • Ascension Level: 23
  • Offline Offline
  • Posts: 335
    • View Profile
Re: Script
« Reply #1 on: February 08, 2010, 08: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  :p
Logged

Deepsmeg

  • DSF Productions
  • Administrator
  • *****
  • Ascension Level: 30
  • Offline Offline
  • Posts: 630
  • Good | <null> | <null>
    • View Profile
    • DSF Productions
Re: Script
« Reply #2 on: February 08, 2010, 10: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 09/08/2011

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
Re: Script
« Reply #3 on: February 09, 2010, 01:50:12 pm »

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 :P
 
Logged

Deepsmeg

  • DSF Productions
  • Administrator
  • *****
  • Ascension Level: 30
  • Offline Offline
  • Posts: 630
  • Good | <null> | <null>
    • View Profile
    • DSF Productions
Re: Script
« Reply #4 on: February 09, 2010, 05:48:35 pm »

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 09/08/2011

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
Re: Script
« Reply #5 on: February 09, 2010, 10: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

  • DSF Productions
  • Administrator
  • *****
  • Ascension Level: 30
  • Offline Offline
  • Posts: 630
  • Good | <null> | <null>
    • View Profile
    • DSF Productions
Re: Script
« Reply #6 on: February 09, 2010, 11: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 09/08/2011

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
 

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.