View Single Post
safetymoose
Senior Member
Join Date: Feb 2015
Old 02-20-2015 , 05:54   Re: Checking entities
Reply With Quote #4

sry i was gone for so long, i was out of town...

I ran into a little problem, i'm using an origin with 3 coordinates. So i need to make a check at that origin for the entities. Also how can i check if the entity at the origin is a player?

Something like:
PHP Code:
static Float:Origin[3]

//i'm using a stock that returns the coordinates of the origin

if (equal(entity at origin"func_door"))
{
// This is a door...
}

//How do i check if it's a player?
if (equal(entity at originPlayer))
{
// This is a player...


Last edited by safetymoose; 02-20-2015 at 06:15.
safetymoose is offline