Raised This Month: $ Target: $400
 0% 

trigger_multiple properties


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 03-19-2010 , 12:37   trigger_multiple properties
Reply With Quote #1

I wanted to create In-Game a trigger_multiple entity with these properties:

PHP Code:
    set_pev(ent1pev_targetname"entity_name")
    
set_pev(ent1pev_target"target_name"
I found this from a homepage:

Quote:
# Target (target) - When an entity is activated, it triggers the entity with the name specified by Target.
# Name (targetname) - Property used to identify entities.
And now, I would like to use these 2 properties but I don't know how to use it in the plugin:

Quote:
1. Delay before trigger (delay) - Usually the time in seconds before an entity should trigger its target (after being triggered itself). Under other SmartEdit names, delay might also be the time to wait before performing some other action.

Delay before reset (wait) - Time in seconds before the entity is ready to be re-triggered.
KadiR is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 03-19-2010 , 13:20   Re: trigger_multiple properties
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=358

With that you can edit keyvalues.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-19-2010 , 13:57   Re: trigger_multiple properties
Reply With Quote #3

Extending on what Xellath said:
PHP Code:
new iEntity create_entity"trigger_multiple" );
DispatchKeyValueiEntity"target""" );
DispatchKeyValueiEntity"targetname""" );
DispatchKeyValueiEntity"delay""" );
DispatchKeyValueiEntity"wait""" );
DispatchSpawniEntity );
// do your entity stuff here 
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 03-19-2010 , 14:30   Re: trigger_multiple properties
Reply With Quote #4

Nice stuff Exolent + Xellath, can you show me also this for engine please:

PHP Code:
dllfunc(DLLFunc_SpawniEntity);
        
engfunc(EngFunc_SetOriginiEntityFloat:{-1163.0, -2223.0, -4.0}); //position of the uber bot...
        
engfunc(EngFunc_SetSizeiEntityFloat:{-64.0, -64.0, -64.0}, Float:{64.064.064.0}) //size of the entity... 
+

PHP Code:
pev(entpev_targetnamename50)
        
pev(entpev_targettarget50
KadiR is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-19-2010 , 14:40   Re: trigger_multiple properties
Reply With Quote #5

Searching does wonders.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 03-19-2010 , 15:10   Re: trigger_multiple properties
Reply With Quote #6

Something like this?

PHP Code:
CreateEntity( const Float:flMins], const Float:flMaxs] )
{
    new 
iEntity create_entity"trigger_multiple" );
    
    if( !
is_valid_entiEntity ) )
        return 
0;
    
    
DispatchKeyValueiEntity"classname""trigger_multiple" );
    
DispatchKeyValueiEntity"targetname""target" );
    
    
DispatchSpawniEntity );
    
    
entity_set_sizeiEntityflMinsflMaxs );
    
entity_set_intiEntityEV_INT_solidSOLID_TRIGGER );
    
    return 
iEntity;

KadiR is offline
Reply


Thread Tools
Display Modes

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 08:44.


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