Jump to content
Sign in to follow this  
askingmachine

How to create only one LGB bomb?

Recommended Posts

How to create only one LGB bomb, using .sqf file?

The problem is that you cannot create (type = ammo) objects correctly with createvehiclelocal or createvehicle ...

I've already tried this:

[] spawn {
 while {true} do {
 Bomb = "Bo_GBU12_LGB" createVehicle (position leko);
 sleep 30;
 };
};

But the script above creates one LGB for each player... so if there's 128 players, there will be 128 LGBs every 30 seconds and that's not how it should be :D

Share this post


Link to post
Share on other sites

Add an isServer check there. It should make only the host machine spawn a bomb.

Share this post


Link to post
Share on other sites

Only ever use *Local commands if you are sure that's what you want. None of the others (server or clients) will know the effects of that local commands, hence the postfix local. I'm not even sure what would happen if you dropped a "local" bomb on yourself. I think you will die but almost everything else would stay intact since that is handled by the server which doesn't know anything about the bomb.

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  

×