Implementing a character component

Hi,

Can anybody tell me how the character components work? I’m trying to add and use the the Character Component all in one script. However, even just adding the character component in the script causes an error. I’m getting a null reference exception, from what I could find there is something to do with the PhysicsWorldTransformation attribute.

The documentation around this area is pretty poor and mostly what I could find is saying to add them using the Game Studio. However, this will not work for my project as I need to automatically add mulitple entities to the world at random times and each entity having it’s own set of waypoints to navigate through. This is why I need the character component so that I can use the SetVelocity method.

Any help would be greatly appreciated.

Kind regards,
Jack