Raised This Month: $ Target: $400
 0% 

Setting Angles and Origins.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 02-04-2007 , 04:14   Setting Angles and Origins.
Reply With Quote #1

I'm trying to rotate the entities all around a selected player.

Code:
public npc_rotate(ent,player) {     new Float:entorigin[3],i,Float:playerorigin[3]     pev(ent,pev_origin,entorigin)     pev(player,pev_origin,playerorigin)     origin[0] += 30     origin[1] += 10     origin[2] += 0     for(i=0;i<3;i++) {         playerorigin[i] += origin[i]         set_pev(ent,pev_origin,playerorigin)         //console_print(0,"[POWER NPC] For called")     }     fm_drop_to_floor(ent)         return PLUGIN_HANDLED }
The ents directly line up to a right angle of the player. Now, what I want todo is to somehow set the angles of each ent, so it completes a circle.

Here's what I have.
[IMG]http://img267.**************/img267/3995/whatun1.jpg[/IMG]
The ents line up.

Here's what I'm trying to achieve.
[IMG]http://img47.**************/img47/5585/360wq0.jpg[/IMG]
(The images probably weren't needed, but I wanted to make sure I made sense)

I would assume this would have todo alot with the ents angles. But how to get them at the right angel, I have no idea. Anyone know anything that might be able to get them correctly angled?
Drak is offline
Send a message via MSN to Drak
 



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 00:38.


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