AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Moving ent (https://forums.alliedmods.net/showthread.php?t=51543)

geertjan88 02-19-2007 20:22

Moving ent
 
I am trying to mave an ent but i don't seem to do it the good way.

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <engine> #define PLUGIN "Test" #define VERSION "1.0" #define AUTHOR "Administrator" new Float:outside[3] = {-51.0, -72.0, -147.0} public plugin_init() {     register_plugin("Test", "1", "Administrator")         register_concmd("amx_testent","testent",ADMIN_IMMUNITY,"Test if an ent moves the right way") } public testent(id)` {     new playerammount     new testP     playerammount = get_maxplayers()     testP = 682 + playerammount         entity_set_origin(testP, outside)     client_print(id,print_chat,"[Amxx] Test worked")     return PLUGIN_HANDLED }

It does show [Amxx] Test worked. And the ent did move but i don't know where too. It is somewhere else then the coordinates i have given.

XxAvalanchexX 02-19-2007 20:26

Re: Moving ent
 
What type of entity is it? Brush-based entities might not cooperate using this method.

geertjan88 02-19-2007 20:32

Re: Moving ent
 
I am not sure... how can i find out?

FormulaZero 02-19-2007 20:56

Re: Moving ent
 
;) Whant kind of entity do you want it to be?

geertjan88 02-19-2007 20:58

Re: Moving ent
 
well it is an entity that already excists in the map. And i want it to be one i can move from one position to another :).

FormulaZero 02-19-2007 21:00

Re: Moving ent
 
Try:
entities
In your remote console, and copy and paste what you have found.

geertjan88 02-19-2007 21:22

Re: Moving ent
 
on hlds console with remote desktop it says nothing when i type entities... :(

geertjan88 02-20-2007 05:38

Re: Moving ent
 
anyone?

XxAvalanchexX 02-20-2007 19:30

Re: Moving ent
 
What entity are you attempting to move?

Davidos 02-21-2007 06:01

Re: Moving ent
 
I found a code which allows you to see what kind of entity it is you wish to move. Look at it and type entid in team, if you need it pm me...


All times are GMT -4. The time now is 00:35.

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