Forum Jump :

Author Message


Posts: 55
Rank:


Level: Member

Country: de
Location: Hamburg
Occupation:
Age: 20
In-game name: Nerodenecro

 
#1 Posted at 2015-09-09 11:30        
     
Greetings,

first off I am sorry if there is already a post for this, I haven't been able to find it so far.

So, I want to be able to "Scroll" and then activate a trigger on the Command "Trigger Activation(Duh)".
I google quite alot found some tuff but nothing really usefull.

Anyone beeing able to help me?


Regards,

Nerodenecro


Author Message


Posts: 635
Rank:


Level: Member

Country: uk
Location: N.W.
Occupation:
Age: 30
In-game name: big_wilk

 
#2 Posted at 2015-09-09 14:47        
     
Trigers Condition:
Trigger_Con;
Player Init:
this addaction ["Triger",{Trigger_Con = true; publicVariable "Trigger_Con";}];


Advertisement


Author Message


Posts: 1
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2016-09-15 10:20        
     
Hi, im trying to do the same thing, but im having trouble mixing your code with my addaction.

I have a trigger attached to a satalite phone object with a pick up addaction, but id like the trigger to active once a player clicks "pick up"

my code for satphone pick up addaction
trig1 attachTo [satphone,[0,0,0]];
this addAction ["Pick up", {call pickup_code}];

the part of your code i need
Trigger_Con = false; publicVariable "Trigger_Con";

Trigger_Con; is in the trigger condition that is attached to the satphone.

Added 33 minutes later:

I worked it out lol

trig1 attachTo [satphone,[0,0,0]];
this addAction ["Pick up", {Trigger_Con = true; publicVariable "Trigger_Con";{call pickup_code}}];

Added 29 minutes later:

ok it only seems like one or the other will work depending on what is first in line.

trigger works but not pick up
this addAction ["Pick up", {Trigger_Con = true; publicVariable "Trigger_Con";{call pickup_code}}]

pick up works but not trigger
this addAction ["Pick up",{call pickup_code;{Trigger_Con = true; publicVariable "Trigger_Con";}}];


any help is greatly appreciated.

Thanks
Jack

Added 20 minutes later:

ok, adding the trigger_con code to the game logic module code for the pick up addaction worked, but the trigger activation isnt working. activation is set to blufor, but supports are activated no matter what side pick it up.

Game Logic - pickup
pickedUpCount = 0;
pickup_code = {
deleteVehicle (_this select 0);
pickedUpCount = pickedUpCount + 1;
hint format ["Picked up object. Now I have %1", pickedUpCount];
Trigger_Con = true; publicVariable "Trigger_Con";
};

This post was edited by jackontakt (2016-09-15 13:00, 452 days ago)