natoed Posted November 7, 2016 Report Share Posted November 7, 2016 I'm run the below from my initServer.sqf within mission pbo, but it doesn't seem to do anything nor any RTP errors. if (isServer) then { {_x setDamage ((random 0.3)+0.4)) foreach ((getMarkerPos "_MARKER1" ) nearObjects ["Building", 25000]); }; note: "_MARKER1" is completed by a script, I have not place this marker in my mission.sqm. any help would be great and thanks again. cheers natoed Link to comment Share on other sites More sharing options...
0 rvg?! Posted November 7, 2016 Report Share Posted November 7, 2016 replace "Building" with "house" natoed 1 Link to comment Share on other sites More sharing options...
1 He-Man Posted November 7, 2016 Report Share Posted November 7, 2016 ... ) foreach must be: ... } foreach if (isServer) then { { _x setDamage ((random 0.3)+0.4) } foreach ((getMarkerPos "_MARKER1" ) nearObjects ["Building", 25000]); }; natoed and rvg?! 2 Link to comment Share on other sites More sharing options...
0 natoed Posted November 8, 2016 Author Report Share Posted November 8, 2016 thx rvg?!, I'm pretty sure house will only do houses, but building will do everything that can take damage. (if i'm wrong u can slap me) thx He-Man, hit the nail on the head, works like a charm. again thank you guys Link to comment Share on other sites More sharing options...
Question
natoed
I'm run the below from my initServer.sqf within mission pbo, but it doesn't seem to do anything nor any RTP errors.
note: "_MARKER1" is completed by a script, I have not place this marker in my mission.sqm.
any help would be great and thanks again.
cheers
natoed
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now