Home   Help Search Login Register  

Author Topic: Attaching sound to vehicle- ie propaganda van  (Read 1938 times)

0 Members and 1 Guest are viewing this topic.

DBR_ONIX

  • Guest
Re:Attaching sound to vehicle- ie propaganda van
« Reply #15 on: 17 Jul 2004, 20:16:16 »
At the risk of confusing stuff more..
Whats the difference between this exec "script.sqs" and [this] exec "script.sqs"

::)
- Ben

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Attaching sound to vehicle- ie propaganda van
« Reply #16 on: 17 Jul 2004, 22:14:55 »
At the risk of confusing stuff more..
Whats the difference between this exec "script.sqs" and [this] exec "script.sqs"

::)
- Ben
this is the object,[this] is an array containing the object...

this is a reserved variable in OFP that points to the object/unit/whatever in which init field it is...

[this] is an array containing that object/unit/whatever...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

DBR_ONIX

  • Guest
Re:Attaching sound to vehicle- ie propaganda van
« Reply #17 on: 19 Jul 2004, 18:31:59 »
Ah, ta..
So you use [this] if you need more variables etc (Like [this,you,me] exec "blah")?
Thanks!
- Ben

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Attaching sound to vehicle- ie propaganda van
« Reply #18 on: 19 Jul 2004, 20:11:22 »
Yup...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.