Home   Help Search Login Register  

Author Topic: ArmA scripting Vs. OFP scripting  (Read 3069 times)

0 Members and 1 Guest are viewing this topic.

Offline Danakin1

  • Members
  • *
ArmA scripting Vs. OFP scripting
« on: 28 May 2008, 04:53:57 »
Does anybody know if most scripting for ArmA will work with OFP?  I seem to be able to only fine Tutorials for ArmA scripting. ???

Offline Cheetah

  • Former Staff
  • ****
Re: ArmA scripting Vs. OFP scripting
« Reply #1 on: 28 May 2008, 07:58:09 »
Most scripting in terms of addons and mods or just general scripting?

In case of the first, you'll get a good reply from the addon boys. In case of the second, you might start here. Not all will work, the demo mission won't work but it's a good start.

Oh, and in case 2 this thread is in the wrong section.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Gcfungus

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #2 on: 28 May 2008, 10:02:15 »
I think that your problem is that in any of the depots, the ArmA filter is on. Simply change it to both, and you should find all of them.
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #3 on: 28 May 2008, 19:44:31 »
Cool, thanks for the info...  I'll check it out.
I found an article regarding Lustypooh's and Niosop's editing reference, but I have yet to be able to find them.
I saw a page that says Lustypooh's is shut down? :blink:

Offline Cheetah

  • Former Staff
  • ****
Re: ArmA scripting Vs. OFP scripting
« Reply #4 on: 28 May 2008, 22:12:30 »
This very website you are watching was once formed over the remnants of Lustypooh's website. The editing reference you are probably looking for is what is called the Command Reference or simply COMREF.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Danakin1

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #5 on: 29 May 2008, 02:42:48 »
Sweet!  :clap:
 Thanks a billion.  I made a cheeze cutscene and as basic as it is.  I'm pretty proud of myself.  I cheated by using me as play and another unit.  Then added a trigger plus waypoint. 

This is very limited and I really don't have much control over the AI pilot and Airwolf.  All I can do is watch Airwolf fly around and listen to the AI pilot yelling... fire! fire!, but nothing happens.  :dunno:

The only way I've been able to get Camera angles is to use camera.sqs, then capture the cordinates then past them in the script. 
Is there a faster way of doing this?  Or do I need to learn the "Grid" better. ???

Offline Gcfungus

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #6 on: 29 May 2008, 08:51:54 »
That's not too difficult. To make a camera move use something like this:
Code: [Select]
_camera settarget aP
// User setrelpos first value is left-right, second is forward-backward, third is up-down
_camera setrelpos [10,15,0]
_camera camcommit 6
@camcommitted _camera
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline Danakin1

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #7 on: 29 May 2008, 18:06:38 »
Cool, I'll try that script out.  Thanks for all your help.   :good:

It's cool to have this forum and you guys to help with all your tips.   I'm amazed at how far I've gotten so far.  I started with no knowledge and now I've gotten a few scripts written down. 
I tried a simple script the other night...  I made the other unit do some pushups...  Cheeze, but the idea was to learn how to do a objpass script.

I tried another script that was supposed to make a Jeep blow up when a unit entered it, but I must have typed the script wrong.

What does "ap" mean in a script? ???

Offline Cheetah

  • Former Staff
  • ****
Re: ArmA scripting Vs. OFP scripting
« Reply #8 on: 29 May 2008, 19:06:27 »
camSetTarget should be used in the script as far as I know.

aP is, as you can see in the URL, is the object or unit targetted. Here aP is a variable indicating a specific unit, it may as well have been 'player','rambo' or 'cheetah'.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline Danakin1

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #9 on: 29 May 2008, 23:22:33 »
Ok, so that's why the script I wrote for the Jeep did not work.  I should have placed [jeep, this] in the sqs instead of [ap, this]... :good:
I was going off a worksheet.  I gotta learn not to pay attention to what I'm scripting.

Offline Gcfungus

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #10 on: 29 May 2008, 23:24:41 »
I thought aP stood for 'a player'. Either way, it's just the subject so that scripts are more generalised.
The object of war is not to die for your country, but to make the other bastard die for his.
~George Patton

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: ArmA scripting Vs. OFP scripting
« Reply #11 on: 30 May 2008, 21:47:57 »
aP was used as the player's object name in missions by BIS and it stuck, virtually everybody uses/used it to name the player(s)..
Although I always used me :P
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline schuler

  • Contributing Member
  • **
Re: ArmA scripting Vs. OFP scripting
« Reply #12 on: 31 May 2008, 19:19:51 »
Quote
It's cool to have this forum and you guys to help with all your tips.
on be heft off all staff i say thank you  Danakin1 :yes:
@ : h-  lol same thing with me but its just ap1 ,,,,, not aP or me! or you!  :P just for fun mate you know me i have to complicate things!!!!!
remember what tags are for ya'll MP and coop!!!!!!
cheers schuler
« Last Edit: 31 May 2008, 19:21:34 by schuler »
Semper Fi

Offline Danakin1

  • Members
  • *
Re: ArmA scripting Vs. OFP scripting
« Reply #13 on: 01 Jun 2008, 23:52:24 »
No worries...  I love this site.  It's full of cool stuff and everyone has been pretty helpful. :good: