Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Santa Six

Avatar / Picture

Colonel
Registered:
Posts: 360
Reply with quote  #1 
This is what I've tried.
 
_brwnMg = "M2HD_mini_TriPod" createVehicle (position _tnk); 
_brwnMg attachTo [_tnk ,[0.35,0,2.9]];
_brwnMg addEventHandler ["Dammaged", {if ((_this select 2) >= .45) then {deleteVehicle this};}];


The object is spawned multiple times. So it can't be deleted by name. I need the eventhandler to work only on the vehicle it's created on.
 
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.