Raised This Month: $ Target: $400
 0% 

How to move an entity without names


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
t*stylez
BANNED
Join Date: Apr 2010
Old 05-09-2010 , 22:21   How to move an entity without names
Reply With Quote #1

How do i move an entity? But i don't want it to be able to move entities with special names.
Such as:
i got a
func_ladder and i want it to be movable but if it's name was (ex:) fat or fatter it couldn't be moved.

how would i do something like this?

Last edited by t*stylez; 05-09-2010 at 22:24.
t*stylez is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-09-2010 , 22:34   Re: How to move an entity without names
Reply With Quote #2

What do you mean by "moved"? Just change its origin?
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
t*stylez
BANNED
Join Date: Apr 2010
Old 05-09-2010 , 22:39   Re: How to move an entity without names
Reply With Quote #3

no
like completely move, like ent mod does.
t*stylez is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-09-2010 , 22:41   Re: How to move an entity without names
Reply With Quote #4

You mean grab entities.
Also, what do you mean by "name" ?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
t*stylez
BANNED
Join Date: Apr 2010
Old 05-09-2010 , 22:42   Re: How to move an entity without names
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
You mean grab entities.
Also, what do you mean by "name" ?
Correct, Grab entities
in maps, you have the option to name a entity,
like if you were using a button for something the button needs a target. and the target is the entities name
hope that makes sense
t*stylez is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-09-2010 , 22:46   Re: How to move an entity without names
Reply With Quote #6

Okay, I understand now.

All you need to do is just copy the code from say BlockMaker or JediGrab.

Then to check an entity's name, check it's targetname value:
Code:
new szTargetName[ 32 ]; // fakemeta pev( iEntity, pev_targetname, szTargetName, charsmax( szTargetName ) ); // engine entity_get_string( iEntity, EV_SZ_targetname, szTargetName, charsmax( szTargetName ) );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
t*stylez
BANNED
Join Date: Apr 2010
Old 05-09-2010 , 22:53   Re: How to move an entity without names
Reply With Quote #7

alright exo thanks:]
t*stylez 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 03:32.


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