• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

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,657
@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