Skip to content

Developing proxmity-based voice chat for NWN

ValeriyaValeriya Member Posts: 55
edited September 2018 in Tools & Plugin Developers
Hello everyone,
I'm trying to develop proxmity-based voice chat for NWN, someone in this thread ( https://forums.beamdog.com/discussion/72666/proximity-based-voice-chat-in-nwn-ee-ideas-how-to-accomplish#latest ) suggested I use Mumble.

https://wiki.mumble.info/wiki/Link

Is there a way I can extract the player's XYZ coordinates and area location?

Comments

  • dunahandunahan Member Posts: 139
    edited September 2018
    The way to do this by script is GetLocation(oPlayer);
    [code]
    location locTarget = GetLocation( oPlayer );
    vector vecLocation = GetPositionFromLocation( locTarget );
    float fX = ( vecLocation.x );
    float fY = ( vecLocation.y );
    float fZ = ( vecLocation.z );
    float fOrientation = GetFacing( oPlayer );
    [/code]
Sign In or Register to comment.