• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to run "code"

Status
Not open for further replies.
Level 12
Joined
Feb 22, 2010
Messages
1,115
*Create a trigger
*Use that code as a condition or action of this trigger.(TriggerAddCondition or TriggerAddAction)
*TriggerEvaluate or TriggerExecute


not sure can you just use it like this:
code c = ...
call c()
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
@Ceday
The trigger might be pretty slow.
The direct call doesnt work as it gives the error that it doesnt know the function c.

@Nestharus
Is that one almost as fast as a direct function call...
And how do I use it?
I assume that I shouldn't pick PLAYERS_ALL (or something similar)
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
and if i use a boolexpr instead of a code... do i get anything that is better than triggerevaluate?
No, except a direct call or inlined function.

What are you doing anyway :)?
 
Status
Not open for further replies.
Top