You must be logged in to do that.

GetPlayer

GetPlayer
int GetPlayer()

Documentation

GetPlayer returns the entity index that currently is controlled by the directional keys amd which is being followed by the camera (during normal camera operation).

Example Usage

int anEntityIndex = EntitySpawn(0, 0, "nathan.chr");
SetPlayer( anEntityIndex );  //this sets the "player" on this map.

if( anEntityIndex == GetPlayer() )
{
    Log( "This will always execute.  Do you know why?  I hope you do!" );
}


Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.