Raised This Month: $51 Target: $400
 12% 

Create an entity and make it spin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
scorpius2k1
Senior Member
Join Date: Feb 2016
Old 07-14-2018 , 11:22   Create an entity and make it spin
Reply With Quote #1

How would I go about making an entity spin in a randomized direction after I spawn it? I understand the direction and velocity parts, etc, I just need to know how to do the spin part. I have played around with the "angles" with TeleportEntity, but it doesn't seem to do what I am needing.

Just think if something exploded how the pieces go it random directions and spin - that's what I am after.

PHP Code:
stock CreateEntityAndSpin()
{
    
decl iEntity;
    
iEntity CreateEntityByName("prop_physics");

    if(
IsValidEntity(iEntity))
    {
        
// Spawn entity and make it spin...
    
}

Thanks in advance!
__________________
{__ PIRATES COVE __} ● HIGH-KILL Community | Stats ●
Half-Life 2: Deathmatch
66.151.244.149:27016 => CONNECT
scorpius2k1 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 11:37.


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