Raised This Month: $ Target: $400
 0% 

NAN orgin :S


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ogelami
Junior Member
Join Date: Apr 2008
Old 10-27-2009 , 22:24   NAN orgin :S
Reply With Quote #1

PHP Code:
    new ball[] = "models/head.mdl";
    new 
float:AimingFrom[3];

public 
plugin_precache(){
    
precache_model(ball);
}
public 
plup(id){
    
    
get_user_origin(id,AimingFrom,1);
    
    new 
entid create_entity("info_target")
    
entity_set_string(entidEV_SZ_classname"some_guy")
    
entity_set_model(entidball)
    
entity_set_origin(entidAimingFrom)
    
    
entity_set_int(entidEV_INT_solid1)
    
entity_set_int(entidEV_INT_movetype6)


This returns to nan orgin when get_user_origin returns a negative number.
And when i set the numbers all by my self the entity dosen't get spawned i have precached the model.
ogelami 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 17:35.


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