nenci494
12-08-2015, 07:19 PM
Hello guys,
recently came back to scripting ( cant log into my old account)..
So i started looking into the new reflection feature. (Pretty usefull btw ;) ).
Now it seems i got a problem with the functions in "Actor". Everytime i try to use on of them ill get a error for example:
function TReflectActor.IsUnderAttack: Boolean;
begin
if Reflect.Smart.IsNull(Self.Reference) then
Exit;
Result := (Self.GetCombatCycle > Reflect.Misc.GetClientLoopCycle);
end;
the IsNull part giving me trouble with the error: Access violation..
I learned java a few years ago but cant seem to figure out what i am doing wrong..
here is an example of how i wanted to use the methods:
While TReflectLocalPlayer.isMoving do
sleep(50);
Hopefully someone can help me :)
recently came back to scripting ( cant log into my old account)..
So i started looking into the new reflection feature. (Pretty usefull btw ;) ).
Now it seems i got a problem with the functions in "Actor". Everytime i try to use on of them ill get a error for example:
function TReflectActor.IsUnderAttack: Boolean;
begin
if Reflect.Smart.IsNull(Self.Reference) then
Exit;
Result := (Self.GetCombatCycle > Reflect.Misc.GetClientLoopCycle);
end;
the IsNull part giving me trouble with the error: Access violation..
I learned java a few years ago but cant seem to figure out what i am doing wrong..
here is an example of how i wanted to use the methods:
While TReflectLocalPlayer.isMoving do
sleep(50);
Hopefully someone can help me :)