Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

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

 
#1 Posted at 2014-01-13 17:05        
     
Hi guys,

I'm trying to add a rearm script to a mission that Ive downloaded as the one included wont work for any UAVs and the ammo trucks don't seem to work at all.
What I'm trying to do is to create a trigger at a bases location that will activate once a player in a vehicle enters its area. Once activated the trigger will run a script that Ive downloaded that should rearm the vehicle.
So far whatever I try wont work and any help would be appreciated.

Here is what Ive got so far

// Repair_Pad

_trgrep=createTrigger["EmptyDetector",_hqblu];
_trgrep setTriggerArea[80,80,0,false];
_trgrep setTriggerActivation["VEHICLE","PRESENT",true];
_trgrep setTriggerStatements["this", execvm 'rearm\repair.sqf', "hint 'In repair area'"];



Author Message


Posts: 1513
Rank:


Level: Member

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

 
#2 Posted at 2014-01-13 20:17        
     
shouldn't the execvm 'rearm\repair.sqf' be inside quotes
_trgrep setTriggerStatements["this", "execvm 'rearm\repair.sqf'", "hint 'In repair area'"];

also is _hqblu being defined in the same script?






Tags: Help, Rearm, Script