Raised This Month: $ Target: $400
 0% 

Need Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 04-15-2013 , 13:14   Need Help
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init( )
{
    
register_plugin"D2 texture abuse fix""1.0""Simo123" );

    new 
map[32];
    
get_mapname(map31);

    if ( 
equal(map"de_dust2") )
    {
        new 
Ent create_entity"info_target" );

        
entity_set_modelEnt"models/w_shield.mdl" );
        
entity_set_originEntFloat:{440.0265.955.0} );
        
entity_set_vectorEntEV_VEC_anglesFloat:{-55.0, -40.0, -89.0} );
    }

How can i change the w_shield position
__________________
Balck is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 04-15-2013 , 13:46   Re: Need Help
Reply With Quote #2

Change the amounts of entity_set_origin( Ent, Float:{440.0, 265.9, 55.0} ); ???

didoWEE is offline
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 04-15-2013 , 13:53   Re: Need Help
Reply With Quote #3

Quote:
Originally Posted by didoWEE View Post
Change the amounts of entity_set_origin( Ent, Float:{440.0, 265.9, 55.0} ); ???

Yes but how to get dhe position this is my problem how can i get the position (entity_set_origin)
__________________
Balck is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 04-15-2013 , 14:01   Re: Need Help
Reply With Quote #4

what's that supposed to do?
Backstabnoob is offline
Old 04-15-2013, 14:07
Balck
This message has been deleted by Balck.
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 04-15-2013 , 15:01   Re: Need Help
Reply With Quote #6

i will learn to get ent, float (?, ?, ?) i need this i will set some models in walls Sory for my english
So plzz help
__________________
Balck is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 04-15-2013 , 15:40   Re: Need Help
Reply With Quote #7

I have never used entity_set_origin.
I use entity_set_vector(index, EV_VEC_origin, {0.0, 0.0, 0.0})
And to get the origin I use:
PHP Code:
new VecFlOrigin[3];
entity_get_vector(indexEV_VEC_originVecFlOrigin); 

Last edited by didoWEE; 04-15-2013 at 15:40.
didoWEE is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-15-2013 , 16:08   Re: Need Help
Reply With Quote #8

to get origins you can make a plugin test, for example make when you write in chat /myorigin use entity_get_vector(...) and show a print with this origin
baneado is offline
Old 04-15-2013, 16:51
Balck
This message has been deleted by Balck.
Balck
Senior Member
Join Date: Apr 2013
Location: Kosova-Mitrovica
Old 04-15-2013 , 17:37   Re: Need Help
Reply With Quote #10

thanks both

but what should I add here


PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
    
register_plugin("PLUGIN""VERSION""AUTHOR")
    
register_clcmd("say /myposition""setori")       
}

public 
setori(id)
{   
    new 
VecFlOrigin[3];
    
entity_get_vectoridEV_VEC_originVecFlOrigin );

because this is not working
__________________
Balck is offline
Reply



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 10:55.


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