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

AMXX and Map Entities


Post New Thread Reply   
 
Thread Tools Display Modes
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 04-27-2008 , 17:45   Re: AMXX and Map Entities
Reply With Quote #11

Cool, I will try this
VMAN is offline
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 04-27-2008 , 17:52   Re: AMXX and Map Entities
Reply With Quote #12

I have one problem, I was going over the code you gave me, and I cant find where you set the info_teleport_destination name.
VMAN is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 04-27-2008 , 17:55   Re: AMXX and Map Entities
Reply With Quote #13

I'm not doing it. Instead i use "fm_set_user_origin()"

But you could do a global variable storing the "info_teleport_destination"
origin on plugin precache.

Then set the users origin to that variable.

EDIT : "get_user_origin ( index, origin[3], [ mode = 0 ] )" Should work good on non-brush entities i think.
__________________

Last edited by atomen; 04-27-2008 at 18:01.
atomen is offline
Send a message via MSN to atomen
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 04-27-2008 , 17:57   Re: AMXX and Map Entities
Reply With Quote #14

Ah, I see what you did now, thanks :}
VMAN is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 04-27-2008 , 21:31   Re: AMXX and Map Entities
Reply With Quote #15

Quote:
Originally Posted by VMAN View Post
But my one last problem is, I have a brush that isn't tied to anything. Is there a way to make it so I can tie a brush to a trigger_teleport? or would I just have to spawn a bunch of tiny teleport entities all over it?
You could copy, reclassify and relocate the brush by just a few pixels. Lets say the brush is model *115 and you want to copy it 2 pixels North of its current location and make it a trigger_teleport. Do this...
Code:
 
new ent
ent = fm_create_entity("trigger_teleport")
if(!ent) {
    return PLUGIN_CONTINUE
}
fm_set_kvd(ent, "origin", "2 0 0")
fm_entity_set_model(ent, "*115")
fm_set_kvd(ent, "target", "dest2")
fm_DispatchSpawn(ent)
Note: this example uses the fakemeta_util.inc
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 04-27-2008 at 21:35.
Vet is offline
Send a message via MSN to Vet
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 13:46.


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