I trying to remove or destroy a default building in Panthera using the following type of command: ([4654,9595,0] nearestObject 145259) setDamage 1;,
but am unable to find a way to know the building ID in this case '145259'.
If anyone can help or has a better way to do it i'd be grateful.
Cheers!
UPDATE!!!!
I solved my own problem by adding this code inside a folder called 'damagecities.sqf' and called it from the bottom of my 'INIT' using: [] execVM "scripts\damage_cities.sqf";
Make a new folder damage_cities.sqf and add code below inside custom\scripts\damage_cities.sqf Hoping this helps somebody else out.
_target = [3055.86,4471.17,0]; //change by your coords //change the coords to suit your needs. _damage_ratio=7; //changed radius to destroy a larger area. This currently is set to destroy one small building.
Question
Aslan247
Hey guys,
I trying to remove or destroy a default building in Panthera using the following type of command: ([4654,9595,0] nearestObject 145259) setDamage 1;,
but am unable to find a way to know the building ID in this case '145259'.
If anyone can help or has a better way to do it i'd be grateful.
Cheers!
UPDATE!!!!
I solved my own problem by adding this code inside a folder called 'damagecities.sqf' and called it from the bottom of my 'INIT' using: [] execVM "scripts\damage_cities.sqf";
Make a new folder damage_cities.sqf and add code below inside custom\scripts\damage_cities.sqf Hoping this helps somebody else out.
_target = [3055.86,4471.17,0]; //change by your coords //change the coords to suit your needs.
_damage_ratio=7; //changed radius to destroy a larger area. This currently is set to destroy one small building.
_server_houses= _target nearObjects ["HouseBase", _damage_ratio];
{_x setdammage 1} forEach _server_houses;
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now