AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to rotate entity (https://forums.alliedmods.net/showthread.php?t=205687)

avril-lavigne 01-13-2013 11:12

how to rotate entity
 
I need to rotate entity just around the circle.
I found engfunc(EngFunc_RunPlayerMove
Its hard to calculate needed vectors. I need only simple rotating.


http://png-3.findicons.com/files/ico...wise3green.png

Bos93 01-13-2013 11:23

Re: how to rotate entity
 
Change angles,example:

PHP Code:

new Float:vAngle]

    
vAngle[0] = 0.0;
    
vAngle[1] = -1.0;
    
vAngle[2] = 0.0;

        
entity_set_vector(g_iOberonEntEV_VEC_anglesvAngle); 


avril-lavigne 01-13-2013 11:36

Re: how to rotate entity
 
ясно, оберон жжет )

Ill try, thanks

Sylwester 01-13-2013 11:44

Re: how to rotate entity
 
Angles will work if you want it to spin around it's own origin, but if you want it to move in a circle around some point then you need something like this:
http://forums.alliedmods.net/showthr...85#post1592085

avril-lavigne 01-13-2013 11:45

Re: how to rotate entity
 
no , around origin. but that code also useful, tnx


All times are GMT -4. The time now is 13:46.

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