Quote:
Originally Posted by Minfas
Hi,
I am trying to figure out how to teleport a entity (prop_dynamic_override) little bit to left and backwards.
PHP Code:
TeleportEntity(entity, g_fLocation, g_fAngles, NULL_VECTOR);
Adding values to g_fLocation is probably useless because its written as coordinates on the map.
Thank you for help!
|
GetEntPropVector(entity, Prop_Data, "m_vecOrigin", g_fLocation);
g_fLocation[0] += 24.0
g_fLocation[1] += 24.0
TeleportEntity(entity, g_fLocation, g_fAngles, NULL_VECTOR);
Mess with numbers or use negative numbers until you're good.
__________________
I am available to make plugins for pay.
Discord: Eyal282#1334