I've tried to make a function to change the candamage types of an entity but OB shuts down when the function runs.
The function:
void candamage (void d1, void d2, void d3, void d4) // ajout
{ // changes the types the identity can damage
void self = getlocalvar("self")...