Jump to content

Recommended Posts

 so i'm trying to make a caesar that i've modded up with a wipeout cannon, 35mm aa tank cannon and just about every other conceivable vehicle weapon in the game respawn, only problem is that every time it respawns, it does so with out any of the fun stuff. could someone please help with my problem?

 

this is some of the script that i put into the init field : 

removeAllWeapons this;
[this,"Gatling_30mm_Plane_CAS_01_F",2] call BIS_fnc_addWeapon;

this addEventHandler ["Respawn",{removeAllWeapons this;
[this,"Gatling_30mm_Plane_CAS_01_F",2] call BIS_fnc_addWeapon;}];

Share this post


Link to post
Share on other sites

i did that earlier by putting it into the init field in the vehicle respawn module but it still didn't work. 

Share this post


Link to post
Share on other sites

Read the popup hint when hovering with the mouse above the init window of the respawn module.

you need to adjust your snippet, "this" does not exist in the respawn modules init field.

params ["_wreck","_respawnedVehicle"];

removeAllWeapons _respawnedVehicle;
[_respawnedVehicle,"Gatling_30mm_Plane_CAS_01_F",2] call BIS_fnc_addWeapon;

You don't need to add a respawn eventhandler to a vehicle that's linked to the respawn module.

 

Cheers

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

×