Forum Jump :

Author Message


Posts: 34
Rank:


Level: Member

Country: us
Location: Wisconsin
Occupation: Graphic Artist
Age: 33
In-game name: ={ZRT}= Peter

 
#1 Posted at 2012-10-24 22:35        
     
How do I make a trigger repeatedly fire while I'm in it?

I play DayZ quite a bit, If you happen to find me there I AM FRIENDLY!! which means No Stabby! mmmk

Author Message


Posts: 508
Rank:


Level: Member

Country: se
Location:
Occupation:
Age: 24
In-game name: Oksman

 
#2 Posted at 2012-10-24 23:52        
     
Better to use scripts and while commands, what exactly are you trying to do?


Advertisement


Author Message


Posts: 34
Rank:


Level: Member

Country: us
Location: Wisconsin
Occupation: Graphic Artist
Age: 33
In-game name: ={ZRT}= Peter

 
#3 Posted at 2012-10-25 00:17        
     
I've set up multiple triggers that spawn explosions when my FireFight trigger is activated. I need the FireFight trigger to continue to fire off while I am still in it.

I play DayZ quite a bit, If you happen to find me there I AM FRIENDLY!! which means No Stabby! mmmk

Author Message


Posts: 508
Rank:


Level: Member

Country: se
Location:
Occupation:
Age: 24
In-game name: Oksman

 
#4 Posted at 2012-10-25 00:28        
     
Can I see this fire fight trigger?


Author Message


Posts: 34
Rank:


Level: Member

Country: us
Location: Wisconsin
Occupation: Graphic Artist
Age: 33
In-game name: ={ZRT}= Peter

 
#5 Posted at 2012-10-25 00:45        
     
Its literally just named FireFight with BlueFor Present. The other triggers just have "triggerActivated FireFight" in their condition.

I play DayZ quite a bit, If you happen to find me there I AM FRIENDLY!! which means No Stabby! mmmk

Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 43
In-game name: kylania

 
#6 Posted at 2012-10-25 01:31        
     
A trigger will only fire once until you deactivate it be leaving it. To make something loop while in the trigger run a script that'll do that.


Author Message


Posts: 34
Rank:


Level: Member

Country: us
Location: Wisconsin
Occupation: Graphic Artist
Age: 33
In-game name: ={ZRT}= Peter

 
#7 Posted at 2012-10-26 00:17        
     
There is no code I can write in the activation or deactivation boxes to do this/

I play DayZ quite a bit, If you happen to find me there I AM FRIENDLY!! which means No Stabby! mmmk

Author Message

Pirin  



Posts: 1547
Rank:


Level: Member

Country: us
Location: Atlanta, GA
Occupation: IT
Age: 43
In-game name: kylania

 
#8 Posted at 2012-10-26 01:34        
     
So you just want random explosions forever and ever? Get rid of all those triggers and just use a script.

// list of markers
_locs = ["bomb", "bomb_1", "bomb_2", "bomb_3", "bomb_4"];

while {true} do {
	_target = _locs call BIS_fnc_selectRandom; // REMEMBER - need Functions module.
	_bomb = "R_57mm_HE" createVehicle getMarkerPos _target;
	sleep (random 5); // Change to adjust frequency
};


Author Message


Posts: 34
Rank:


Level: Member

Country: us
Location: Wisconsin
Occupation: Graphic Artist
Age: 33
In-game name: ={ZRT}= Peter

 
#9 Posted at 2012-10-26 03:59        
     
No, I want explosions while I'm in the area and then nothing when I'm not around. Also putting your spawn bomb script in the condition box causes it to constantly explode.

I play DayZ quite a bit, If you happen to find me there I AM FRIENDLY!! which means No Stabby! mmmk

Author Message


Posts: 508
Rank:


Level: Member

Country: se
Location:
Occupation:
Age: 24
In-game name: Oksman

 
#10 Posted at 2012-10-27 06:54        
     
Use while player distance that area or something. Believe it makes it easier.

while {player distance nameofsomerandomobjectperhapsagamelogic < 50} do {Somerandomexplosionwithdelayscript}.

Should work

Using what Kylania wrote.

_locs = ["bomb", "bomb_1","bomb_2", "bomb_3", "bomb_4"];
while {player distance object < 50} 

do {
_target = _locs call 

BIS_fnc_selectRandom; // REMEMBER - need Functions module.
_bomb = "R_57mm_HE" createVehicle 

getMarkerPos _target;
sleep (random 5); // Change to adjust frequency
};


I put that into the init.sqf which worked.
Should pretty much blow stuff up as soon as you get closer than 50m.

This post was edited by Oksman (2012-10-27 07:07, ago)