Raised This Month: $ Target: $400
 0% 

Triggers in map to code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sandurr
Senior Member
Join Date: Aug 2005
Old 12-21-2005 , 12:59   Triggers in map to code
Reply With Quote #1

Is it possible that, when for example, in the map, a trigger gets activated, you can use its target that is activated in the code?

For example

A trigger has as target: open

when someone walks tru it, public open() or something is trigger? something like that possible ? lol
Sandurr is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-21-2005 , 13:04  
Reply With Quote #2

Moved to from "Support / Help".
Brad is offline
DarlD
Senior Member
Join Date: Aug 2004
Old 12-21-2005 , 15:22  
Reply With Quote #3

We will have to test it now wont we

EDIT: tested with Target as the action for a code, doesnt work

i repeat... this doesnt work
__________________
DarlD is offline
Send a message via MSN to DarlD
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-21-2005 , 19:59  
Reply With Quote #4

Code:
public plugin_init() {     register_touch("*","player","player_touch");  }  public player_touch(ent,player) {     if(!is_valid_ent(ent)) return PLUGIN_CONTINUE;     new target[32];     entity_get_string(ent,EV_SZ_target,target,31);     if(equali(target,"open")) {         open();     }     return PLUGIN_CONTINUE;  }  public open() {  }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 15:46.


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