AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get origin (https://forums.alliedmods.net/showthread.php?t=129290)

SeNz[0]r 06-11-2010 07:24

get origin
 
I'm not sure at origin . I did a plugin : when you write in the console "bind x storm" and you press x you throw lighting . I did with TE_LIGHTING etc ... coord are ok , but the origin :| i don't know how to pot it . I put this :

Code:

  new Float:vOrigin[ 3 ];
  fm_get_aim_origin( id, vOrigin );
     
  new origin[3]
  get_user_origin(id, origin, 3)

I know it isn't ok ...

portocala 06-11-2010 08:12

Re: get origin
 
Code:

new origin[3];
get_user_origin(id, origin);

origin[0] = X
origin[1] = Y
origin[2] = Z

You used wrong the third parameter.

Check http://www.amxmodx.org/funcwiki.php?go=func&id=162

Alucard^ 06-11-2010 10:13

Re: get origin
 
An old utility that i made, but maybe help you: http://forums.alliedmods.net/showthr...ghlight=origin


All times are GMT -4. The time now is 05:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.