Anonymous Anonymous - 1 year ago
444 0

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


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!");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download