• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

[help] Get block that player are looking at from server side

Zaklinatel

Refugee
Hello all!

Any idea how is possible to get block that player are looking at on server side mod?

I can get player's look ray (Player::GetLookRay()) and look vector, but I need to know which block the player is currently looking.

Is there a way to trace a ray through the World and get nearest intersection with a block?

p.s.

sorry for errors

 
Last edited by a moderator:
Back
Top