Any chance to get a hook made for when players become parented or unparented with an entity, like when they board/unboard Cargo Ship? I want to run a check when players are or are not on Cargo, and even with Hooks Extended, there isn't anything that seems to work. The best I can do is setting a check with OnPlayerTick, but that is super messy. Or any help with how to create such a hook would be much appreciated.
Hook for when players are parented/unparented with an entitySolved
You can create sphere around cargo ship and then when it triggers player join/leave cargo ship
Any help in who to go about doing that? Still new to learning how to code for Rust plugins.
void OnEntityEnter(TriggerParent trigger, BasePlayer player)
void OnEntityLeave(TriggerParent trigger, BasePlayer player)
trigger.GetComponentInParent<CargoShip>()
void OnEntityLeave(TriggerParent trigger, BasePlayer player)
trigger.GetComponentInParent<CargoShip>()
Thank you @Ts3hosting! Big help!
Locked automatically