Jump to content
Sign in to follow this  
roguetrooper

Multiplayer and "allow(global)damage"

Recommended Posts

Since allowdamage works only locally, it would be great to have a command "allowGlobalDamage" which would have effect on the server and on all clients no matter on which computer it is executed without the need for any additional code to distribute it throughout the network.

It would make things much easier when you want to be something damagable or undamagable on the server and all clients at once. Especially when the damageble-status gets changed on the fly while the map is running (otherwise of course it would be sufficient to have name allowdamage false; in the init.sqf or any other file that gets executed on the server and all clients.

Share this post


Link to post
Share on other sites
Since allowdamage works only locally, it would be great to have a command "allowGlobalDamage" which would have effect on the server and on all clients no matter on which computer it is executed without the need for any additional code to distribute it throughout the network.

It would make things much easier when you want to be something damagable or undamagable on the server and all clients at once. Especially when the damageble-status gets changed on the fly while the map is running (otherwise of course it would be sufficient to have name allowdamage false; in the init.sqf or any other file that gets executed on the server and all clients.

Easy solution:

-Place functions module on the map

[nil, nil, "per", rSPAWN, [_unit], { (_this select 0) allowDamage false }] call RE;

Just need to run on one machine, JIP included.

_neo_

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  

×