fawlty 30 Posted February 9, 2023 Guys, I'm trying to use a trigger to create a replacement vehicle, once it's lost, for multiplayer use rather than having to go to zeus. The trigger is, radio to activate, repeatable, server only. The code for On Activation is private _vehicle = "B_T_LSV_01_armed_F" createVehicle (getPos p1); ["AmmoboxInit",[_vehicle,true]] call BIS_fnc_arsenal; This works fine when testing and I'm the only player. When the other players are in game I'm getting multiple vehicles spawning and of course mayhem (usually everyone dies with a vehicle on their head 😉 ) and a lot of 'what the ****" Would like this to work with only one vehicle spawning if you have an idea to fix this script Thanks. Share this post Link to post Share on other sites
ZaellixA 383 Posted February 9, 2023 Can you show how and where you create the trigger? Share this post Link to post Share on other sites
Joe98 92 Posted February 9, 2023 Another option is to have the vehicle sitting on the map in an out of the way place. Create a trigger and when the conditions are met, the trigger transports the vehicle to the correct location. . Share this post Link to post Share on other sites
fawlty 30 Posted February 9, 2023 Here's the trigger placed anywhere on the map https://www.dropbox.com/sc/s0zxs6oa7axv3ho/AAAzJdpQ77Gwx9CUzLssGdJ1a P1 being player (me) I could always just use a respawn module but I liked the flexibility with this Share this post Link to post Share on other sites
pierremgi 4906 Posted February 10, 2023 11 hours ago, fawlty said: Guys, I'm trying to use a trigger to create a replacement vehicle, once it's lost, for multiplayer use rather than having to go to zeus. The trigger is, radio to activate, repeatable, server only. The code for On Activation is private _vehicle = "B_T_LSV_01_armed_F" createVehicle (getPos p1); ["AmmoboxInit",[_vehicle,true]] call BIS_fnc_arsenal; This works fine when testing and I'm the only player. When the other players are in game I'm getting multiple vehicles spawning and of course mayhem (usually everyone dies with a vehicle on their head 😉 ) and a lot of 'what the ****" Would like this to work with only one vehicle spawning if you have an idea to fix this script Thanks. Just modify you code like this: if (isServer) then {private _vehicle = "B_T_LSV_01_armed_F" createVehicle (getPos p1); ["AmmoboxInit",[_vehicle,true]] call BIS_fnc_arsenal}; If you need to respawn a vehicle with arsenal, just use my respawn vehicle module (MGI advanced Modules) 1 Share this post Link to post Share on other sites
fawlty 30 Posted February 10, 2023 Pierre, I'm getting a invalid number in expression error with this. Share this post Link to post Share on other sites
pierremgi 4906 Posted February 10, 2023 14 minutes ago, fawlty said: Pierre, I'm getting a invalid number in expression error with this. should work... verify P1 as object or something else. 1 Share this post Link to post Share on other sites
fawlty 30 Posted February 10, 2023 Never noticed your arsenal option before on the advanced module, looks to be all I need although sometimes a vehicle gets destroyed in a bad location, which is where the manual respawn comes in handy, also timing. I'll keep playing with the error. Edit; that was it I had my character labeled wrong. Thanks once again 1 Share this post Link to post Share on other sites