Home   Help Search Login Register  

Author Topic: Triggername into script  (Read 1029 times)

0 Members and 1 Guest are viewing this topic.

Walker01

  • Guest
Triggername into script
« on: 18 Jul 2006, 20:38:30 »
Hello
How do i get a trigger (triggername) into my script?

Apparently this is not working:

In trigger:
Quote
[this] exec "script.sqs"
In script:
Quote
_trigger = _this select 0

Neither is this:

In trigger:
Quote
[triggername] exec "script.sqs"
In script:
Quote
_trigger = _this select 0

Thanx

Offline Seven

  • Members
  • *
  • Am I a llama?
Re: Triggername into script
« Reply #1 on: 18 Jul 2006, 20:41:24 »
What does your script do? Or what does it look like?

Walker01

  • Guest
Re: Triggername into script
« Reply #2 on: 18 Jul 2006, 20:56:17 »
The script is actually work in progress. It is a script deleting units by selected difficulty.
What i acctually wanted was a list of the units in different triggers.

By using:

_list = list _trigger

it did not work becouse i had couldnt get the trigger into the script.


Offline Terox

  • Former Staff
  • ****
  • Follow the Sappers!
    • zeus-community.net
Re: Triggername into script
« Reply #3 on: 18 Jul 2006, 22:22:57 »
Quote
[triggername] exec "script.sqs"


when running the script.sqs
you would need to state the following

Quote
_trig = _this select 0
_list = list _trig
Zeus ARMA2 server IP = 77.74.193.124 :2302
Teamspeak IP = 77.74.193.123

Walker01

  • Guest
Re: Triggername into script
« Reply #4 on: 18 Jul 2006, 22:43:54 »
Yup i got it! ;D Thanx