Jump to content
  • 0

Overwriting class CfgVehicles


Sandbird

Question

Is there a way i can overwrite some functions that get set in class CfgVehicles  ?

Particularly vehicles that have an EventHandler in them, like:

class EventHandlers {
   init = "_this execVM (""custom\init.sqf"")";
};

I want to write my own functions and addactions

Like instead of 'Get In' to replace it with another function.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

you could removealleventhandlers on the objects and insert your own but you can't override the cfgvehicles unless you distribute your own custom pbo files.

 

edit: what are you trying to accomplish?  if you just want to change eventhandlers, you can override those easy enough.

Link to comment
Share on other sites

  • 0

you could removealleventhandlers on the objects and insert your own but you can't override the cfgvehicles unless you distribute your own custom pbo files.

 

edit: what are you trying to accomplish?  if you just want to change eventhandlers, you can override those easy enough.

 

I am trying to overwrite the RQ-11 eventhandlers so it loads my scripts instead of its own.

Right now its creating markers on the make with createmarker instead of createmarkerlocal.. I wanna changes them, but the vehicle calls its init.sqf from within the class...i thought by overwriting the class i could do it.

Link to comment
Share on other sites

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