As well as the other GetEvent functions.
I've trying looking at other scripts which include the function, but there is no include that they all have in common. I've tried opening likely scripts and searching, but to no avail.
Any ideas?
#include for GetEventObject()?
Débuté par
Rolenka
, janv. 06 2010 10:24
#1
Posté 06 janvier 2010 - 10:24
#2
Posté 06 janvier 2010 - 10:29
shouldn't this stuff be in the documentation? i'm not saying that it is but i think it should be somewhere.
#3
Posté 06 janvier 2010 - 10:29
double post
Modifié par gordonbrown82, 06 janvier 2010 - 10:29 .
#4
Posté 06 janvier 2010 - 11:13
There is no need for include, they are part of the native (hardcoded) functions.
#5
Posté 06 janvier 2010 - 11:43
Are you asking what each one represents? That should be in the wiki for each event type - where it is not, feel free to point it out and I or someone else will try to update it. A more concerted effort to expand and correct the documentation will hopefully be starting soon.
social.bioware.com/wiki/datoolset/index.php/Category:Event_types
social.bioware.com/wiki/datoolset/index.php/Category:Event_types
#6
Posté 06 janvier 2010 - 11:59
Bleh, I should have written GetEventCreator. I had to come downstairs to feed my son and I don't have the toolset on the laptop.
My problem is that when I use:
object oDamager = GetEventCreator(ev);
int nAbility = GetEventInteger(ev, 1);
float fDamage = GetEventFloat(ev, 0);
They all generate compiler errors saying "variable defined without type." Which is of course wrong, but it sometimes appears when the include for the function is missing, so I thought that was the case.
My problem is that when I use:
object oDamager = GetEventCreator(ev);
int nAbility = GetEventInteger(ev, 1);
float fDamage = GetEventFloat(ev, 0);
They all generate compiler errors saying "variable defined without type." Which is of course wrong, but it sometimes appears when the include for the function is missing, so I thought that was the case.
Modifié par Rolenka, 07 janvier 2010 - 12:00 .
#7
Posté 07 janvier 2010 - 12:01
have you declared:
event ev;
?
event ev;
?
#8
Posté 07 janvier 2010 - 12:01
You are using ev, most likely without declaring event ev = GetCurrentEvent();
#9
Posté 07 janvier 2010 - 12:06
Out posted!
Modifié par Sunjammer, 07 janvier 2010 - 12:07 .
#10
Posté 07 janvier 2010 - 12:09
lol thanks. I wonder how long that would have taken me....
*blush*
*blush*
#11
Posté 07 janvier 2010 - 12:16
The sad thing is that generally after a while the more you read the same script missing the problem again and again, you will keep missing it as your mind is clearly not focused on where the real problem is hehe 
If that happens to me, I usually take a break, or work on something else, and then when I go back at analyzing the evil script, it's like "dang, how could I miss that ".
If that happens to me, I usually take a break, or work on something else, and then when I go back at analyzing the evil script, it's like "dang, how could I miss that ".
Modifié par elys, 07 janvier 2010 - 12:16 .
#12
Posté 07 janvier 2010 - 12:25
Ain't that the truth...





Retour en haut







