AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [ Help ] Enitity Think (https://forums.alliedmods.net/showthread.php?t=215175)

daniel46 05-04-2013 11:39

[ Help ] Enitity Think
 
how do i make an entity move just move around

didoWEE 05-04-2013 17:39

Re: [ Help ] Enitity Think
 
You have to register Think function and this function should look like that:
PHP Code:

new Float:FlVecOrigin[3];

entity_get_vector(entity_indexEV_VEC_originFlVecOrigin);

// THIS ARE JUST EXAMPLES
FlVecOrigin[0]+= Number_X// X coordinate gets bigger with Number_X units
FlVecOrigin[1]-= Number_Y// Y coordinate gets lower with Number_Y units
FlVecOrigin[2]+= Number_Z// Z coordinate gets bigger with Number_Z units
// However you said "move around" and if I understand it correctly, you don't need changing Z axis

entity_set_vector(entity_indexEV_VEC_originFlVecOrigin); 


hornet 05-05-2013 07:31

Re: [ Help ] Enitity Think
 
"Move around" is a very vague description. Exactly how should it move?


All times are GMT -4. The time now is 10:56.

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