AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Multi_Manager Round Start (https://forums.alliedmods.net/showthread.php?t=131085)

point.blank 06-30-2010 22:34

Multi_Manager Round Start
 
I need to call a multi_manager whenever the round starts. possible?

wrecked_ 06-30-2010 22:38

Re: Multi_Manager Round Start
 
Maybe; what's a multi_manager?

point.blank 06-30-2010 22:45

Re: Multi_Manager Round Start
 
An entity within a map.
"The multi_manager entity can be used as a relay.This means it can be used to trigger a number of events .For example you wanted a person to walk into a room and trigger a sequence of events. You could use a normal trigger_once entity to target the multi_manager, so once the player passes through the trigger_once the multi_manager is activated.Now the multi_manager targets a number of events and it controls the order in which these events are activated."

wrecked_ 06-30-2010 23:11

Re: Multi_Manager Round Start
 
Are there several of these entities in your map, or just one? How is it triggered, by use?

point.blank 06-30-2010 23:14

Re: Multi_Manager Round Start
 
just one multi_manager in the map. The targetname of the multi_manager is mm1. There is a button that when pressed, targets the multi_manager

wrecked_ 06-30-2010 23:26

Re: Multi_Manager Round Start
 
Code:
#include <amxmodx> #include <fakemeta> new MMButton public plugin_init() {     register_plugin( "MultiManager On Roundstart", "1.0", "Wrecked" )         MMButton = engfunc( EngFunc_FindEntityByString, -1, "targetname", "mm1" )         if( !MMButton )         set_fail_state( "Error: multi_manager entity not found." )         register_logevent( "LogEventRoundStart", 2, "1=Round_Start" ) } public LogEventRoundStart()     dllfunc( DLLFunc_Use, MMButton, 0 )

point.blank 06-30-2010 23:45

Re: Multi_Manager Round Start
 
"Error: multi_manager entity not found."
Strange, this is why I was wondering if it was possible

edit:
Code:

engfunc( EngFunc_FindEntityByString, -1, "target", "mm1" )
changed to
Code:

engfunc( EngFunc_FindEntityByString, -1, "targetname", "mm1" )
works perfectly now.
THANKS!

wrecked_ 07-01-2010 00:15

Re: Multi_Manager Round Start
 
Quote:

Originally Posted by point.blank (Post 1225194)
changed to
Code:

engfunc( EngFunc_FindEntityByString, -1, "targetname", "mm1" )
works perfectly now.
THANKS!

Haha, woops. No problem.


All times are GMT -4. The time now is 14:42.

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