akinkhoo 0 Posted July 6, 2004 sorry i am really confused by this, i am not sure if it can be done, but i would really hope to get it to work. i am willing to try any ideas.... 1. i need to predefined some script which is ALWAYS used with this vehicle. can i make a script that run each time vehicle "nuke disarmer" is loaded in a game via it's config file? - i hope to tie the script in the addon pbo so mission creator don't need to keep init the vehicle, without the script, the vehicle doesn't work  2. how could i make an action with a condition that the player must be driver of B and the vehicle A is available for use. (eg. an action in nuclear device A can only be activated by driver of B) - i think it can be done with weapons, as well as getting the object being driven but how do you get the vehicle class? i am most grateful of your help. Share this post Link to post Share on other sites
bn880 5 Posted July 6, 2004 1. In your vehicles config.cpp create this section: cfgVehicles: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class eventhandlers { init="_this exec{\addonName\script.sqs}"; }; 2. Vehicle class? Maybe you can just use typeof vehicle player or ?driver veh==player&&typeof veh=="VehType": or you can do a countType comparisson to get the class of the vehicle [veh]counttype"tank" Share this post Link to post Share on other sites