mthcom 1 Posted April 11, 2013 i want to change init of an object with a trigger what should i write in activation part of trigger? Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 11, 2013 What do you intend to do precisely ? Share this post Link to post Share on other sites
mthcom 1 Posted April 11, 2013 i want to make my motor cycle invulnerable by using a evenhandler which sets dammage to zero when motor is hit but i just create a lot of motors in a mission and so the only way to add this code to each of them is to change their init line with the trigger that creates em Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 11, 2013 Could you post the exact code you are using to spawn the motorcycle ? Share this post Link to post Share on other sites
mthcom 1 Posted April 11, 2013 TempObject = "BAS_klr250dese" CreateVehicle [((getpos player select 0)+1), (getpos player select 1), (getpos player select 2)]; I use bas addons and the motorcycle is a bas specialized motorcycle Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 11, 2013 TempObject = "BAS_klr250dese" CreateVehicle [((getpos player select 0)+1), (getpos player select 1), (getpos player select 2)];tempobject addeventhandler ["hit","your code blabla"] Share this post Link to post Share on other sites
mthcom 1 Posted April 11, 2013 thank you sir it worked so goooooood you didn't tell me that how can i give you a thanks in this forum? Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 11, 2013 thank you sirit worked so goooooood you didn't tell me that how can i give you a thanks in this forum? You can't "give a thank", but just help someone on the forum when you'll be able to :) Share this post Link to post Share on other sites