I'm looking for some help with adding/removing sling loading event handlers within safezones.
I assume this is the best way to prevent sling loading out of my trader cities where players can't defend their vehicles?
Should I use the rope attach, (thus people can still release their vehicles into the trader, just not pickup/steal them out?)
I'd like to incorporate into my safezone script which defines the safezone distances.
RopeAttach
Triggered when a rope is attached to an object.
In the case of sling loading, this event handler must be assigned to the helicopter and will trigger for each attached rope.
- object 1: Object - Object to which the event handler is assigned.
- rope: Object - The rope being attached between object 1 and object 2.
- object 2: Object - The object that is being attached to object 1 via rope.
Will this work?
_EHaddsling = helicopter addEventHandler ["ropeAttach", object1]
_EHremovesling = helicopter removeEventHandler ["ropeAttach", object]
I know how to assign an eh to player, but if I want it to apply to all helicopters will using "helicopter" work? Does each helicopter type need to be listed?
Thoughts help would be greatly appreciated!!