| 07-21-2009, 02:33 PM | #1 |
JASS:scope xefxTest initializer Init private function Actions takes nothing returns nothing local xefx obj = xefx.create(0, 0, 0) set obj.fxpath = "units\\human\\Rifleman\\Rifleman.mdl" //this stupid unit is created but the xefx object is not ! call CreateUnit(Player(0), 'hfoo', 0, 0, 0) endfunction //=========================================================================== private function Init takes nothing returns nothing local trigger xefxTestTrg = CreateTrigger( ) call TriggerRegisterTimerEvent(xefxTestTrg, 1.00 , true) call TriggerAddAction(xefxTestTrg, function Actions ) endfunction endscope SO I am learning how to use xefx for the first time BUT ... it doesn't seem to be working ... what am I doing wrong here ? Why is my effect not created ? |
| 07-21-2009, 02:57 PM | #2 |
I think you'r missing a .mdl at the end of the path And why are you converting GUI triggers? The time it takes to create this Elapsed Game Time is 1 sec thing you could have wrote a scope with an initializer |
| 07-21-2009, 03:39 PM | #3 |
This is only a test trigger, I am not interested in performance neither optimization of the code. However, since you request, I made a few changes. As for your suggestion, I tried with .mdx and .mdl but nothing worked =S Is it possible that it is a xefx bug ? xe 0.6 didn't even compile, maybe Vex messed up something by accident. I also added a test map ... hopefully someone will help =S |
| 07-21-2009, 04:53 PM | #4 |
You haven´t imported the dummy model, which is needed by xefx |
| 07-21-2009, 05:23 PM | #5 |
You didnt get the point. Didn't want to tell you how to "optimize" your testcode. Just wanted to say writing this from scratch is faster then doing GUI and converting. But of course not, if your doing the same as GUI would. No need for using a trigger or anything… JASS:scope xefxTest initializer Init private function Init takes nothing returns nothing local xefx obj = xefx.create(0, 0, 0) set obj.fxpath = "units\\human\\Rifleman\\Rifleman.mdl" endfunction endscope and D1000 is right |
| 07-21-2009, 07:36 PM | #6 |
Damn ... I knew it was something basic. Thx guys ! rep++ |
