Raised This Month: $ Target: $400
 0% 

[ Help ] Enitity Think


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 05-04-2013 , 11:39   [ Help ] Enitity Think
Reply With Quote #1

how do i make an entity move just move around
daniel46 is offline
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
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-05-2013 , 07:31   Re: [ Help ] Enitity Think
Reply With Quote #3

"Move around" is a very vague description. Exactly how should it move?
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Reply



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