Home   Help Search Login Register  

Author Topic: Whats so wrong with that?  (Read 474 times)

0 Members and 1 Guest are viewing this topic.

Belial

  • Guest
Whats so wrong with that?
« on: 19 Jul 2005, 18:01:54 »
Hi there !

Id like to know why this very basic script doesnt work. Basically, im doing some tests to have a 2 squads and 2 snipers shooting at a car on Radio Alpha.

The activation field of the trigger is :

[A,B,Sniper1,Sniper2,car] exec "target.sqs"

A and B beeing the leaders of the squads.

And heres the error i get :
'_target = this select 4|#|' error select: Type Object, expected Array

Of course that an object !! Thats what i intend to do !! ???

See the script in attachment, any help would be much appreciated  :)
« Last Edit: 19 Jul 2005, 18:03:45 by Belial »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Whats so wrong with that?
« Reply #1 on: 19 Jul 2005, 18:05:10 »
and ( _ ) underscroe before each of your this's

(eg _target = _this select 4)

Belial

  • Guest
Re:Whats so wrong with that?
« Reply #2 on: 19 Jul 2005, 18:06:45 »
lol can i feel more stupid?

Thanks a lot mister :D