nulling damage script? [message #487659] |
Tue, 20 May 2014 09:48 |
|
Xpert
Messages: 1588 Registered: December 2005 Location: New York City
Karma: 0
|
General (1 Star) |
|
|
Okay, it's been awhile since I've done some coding, and I completely forgot how to do this certain piece:
Was there ever a script zone that when a unit stands in it, they can't do damage to a building?
Or is there any kind of script that exist in 4.0patch1 (NOT 4.1), that does this kind of method?
If not, can someone explain to me how I would go about doing that like say if you're an arty on the hill on hourglass, your vehicle can't damage buildings, that sort of thing.
Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.
Part time streamer - https://twitch.tv/gg_wonder
|
|
|
Re: nulling damage script? [message #487660 is a reply to message #487659] |
Tue, 20 May 2014 10:36 |
iRANian
Messages: 4308 Registered: April 2011
Karma: 0
|
General (4 Stars) |
|
|
Create a zone/OBBoxClass or w/e and in your server damage hook check if the person doing the damage is inside the zone, if the person is in the zone block the damage.
Long time and well respected Renegade community member, programmer, modder and tester.
Scripts 4.0 private beta tester since May 2011.
My Renegade server plugins releases
|
|
|
|
|