Anonymous Anonymous - 3 months ago
124 0

Where would I put this in my script? OnAction? Should it be on it's own?

Other

SOMA Coding Help

bool cLux_GetClosestEntity(Player_GetCameraPosition(), Player_GetCameraYawPitchRoll(), 20, 0, true, collisionData);
	if (cLux_GetClosestEntity(Player_GetCameraPosition(), Player_GetCameraYawPitchRoll(), 1000, 0, true, collisionData))
	{
			
		if (collisionData.mpEntity.GetName() == "monster_test")
		{
				
			cLux_AddDebugMessage("Patrol: end of tracks!");
				
		}
			
	}