Jump to content
Sign in to follow this  
mthcom

change the init of an object by script

Recommended Posts

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

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

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
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

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
thank you sir

it 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×