Accessing a variable in another script is crashing the engine.

yes it is happening because of that.

I would advise not to call those initialization functions on your own, because they are called automagically by the engine.

Can you tell me where do you actually try to set the MyPawn variable for a weapon?

Edit: did i really wrote “write” instead of “right” in my previous post? Im sorry for that :wink: