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?