Sandbird Posted November 2, 2014 Report Share Posted November 2, 2014 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 More sharing options...
0 hambeast Posted November 3, 2014 Report Share Posted November 3, 2014 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 More sharing options...
0 Sandbird Posted November 3, 2014 Author Report Share Posted November 3, 2014 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 More sharing options...
Question
Sandbird
Is there a way i can overwrite some functions that get set in class CfgVehicles ?
Particularly vehicles that have an EventHandler in them, like:
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now