diff --git a/addons/common/fnc_getPos.sqf b/addons/common/fnc_getPos.sqf index 8947aab0e..18f37b8fc 100644 --- a/addons/common/fnc_getPos.sqf +++ b/addons/common/fnc_getPos.sqf @@ -5,7 +5,7 @@ Description: A function used to get the position of an entity. Parameters: - Marker, Object, Location, Group or Position + Marker, Object, Location, Group or Task Example: (begin example) @@ -20,21 +20,23 @@ Author: ---------------------------------------------------------------------------- */ -switch (typename _this) do { +params ["_thing"]; + +switch (typeName _thing) do { case "OBJECT" : { - getpos _this + getPos _thing }; case "GROUP" : { - getpos (leader _this) + getPos (leader _thing) }; case "STRING" : { - getmarkerpos _this + getMarkerPos _thing }; case "LOCATION" : { - position _this + position _thing }; case "TASK" : { - taskdestination _this + taskDestination _thing }; default {_this}; };