Jump to content
  • 0

Sling Loading EH's in safezones (need help)


Ace22

Question

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!!

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...