Raised This Month: $ Target: $400
 0% 

[ Help ] Enitity Think


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 05-04-2013 , 17:39   Re: [ Help ] Enitity Think
Reply With Quote #2

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); 

Last edited by didoWEE; 05-04-2013 at 17:52.
didoWEE is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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