Sarbian changed the topic of #kspmodding to: Welcome to #kspmodding - the channel for discussing, and learning about, modding Kerbal Space Program. Code of Conduct: https://git.io/vSQh6 | Always provide logs. | *** PSA: https://kerbalspaceprogram.com/api/index.htm | Someone is writting a Phd dissertation on KSP modding please fill out this survey https://goo.gl/forms/1vrkPYH4az8l32sb2 - I have met him and it s legit
VanDisaster has quit [Ping timeout: 202 seconds]
VanDisaster has joined #kspmodding
Daz has quit [Remote host closed the connection]
Daz has joined #kspmodding
<taniwha> BenjaminK: GameEvents.eventname.Add (handler)
<taniwha> then in your OnDestroy: GameEvents.eventname.Remove(handler)
<BenjaminK> where handler is the function?
<taniwha> yeah
<BenjaminK> hsould the handler be of a specific type?
<taniwha> yes, it's event-specific, though
<taniwha> I think they're all void, but the parameters vary
<BenjaminK> so for onVesselPartCountChanged the return type of the handler would be EventData<Vessel>.OnEvent?
<BenjaminK> because void didn't work
<taniwha> void onVesselPartCountChanged(Vessel v)
<taniwha> (just copied the name)
<taniwha> (which I usually do)
<BenjaminK> hmm cool thanks!
egg|trappist|egg is now known as egg|zzz|egg
Ezriilc has quit [Quit: Going offline, see ya! (www.Kerbaltek.com)]
Technicalfool_ has joined #kspmodding
Technicalfool has quit [Ping timeout: 198 seconds]
Lyneira has joined #kspmodding
hashashin has joined #kspmodding
hashashin has quit [Read error: -0x1: UNKNOWN ERROR CODE (0001)]
Lyneira has quit [Quit: Quit]
hashashin has joined #kspmodding
Lyneira has joined #kspmodding
Lyneira has quit [Quit: Bye]
Lyneira has joined #kspmodding
Ezriilc has joined #kspmodding
Daz has quit [Remote host closed the connection]
Daz has joined #kspmodding
Lyneira has quit [Quit: Bye]
lamont has quit [Ping timeout: 198 seconds]
lamont_ has joined #kspmodding