» Mon Nov 19, 2012 2:33 am
Hello Cipscis
No, his Main Actor ID when you open an Actor in the Object window\Actors\Actor
Here is the deal. do you remember before when you helped me out with Event Onhit in order to get the actor level ?
well it did not work. I had to open the actor in the game map, and give it an new ID in the "Reference Editor ID" So I can Set A Value To It In Order To Work
i had to change to this:
Scriptname gp_testxp extends ObjectReference
Actor Property PlayerRef Auto
Actor Property GP_01REF Auto
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool bHitBlocked)
If akAggressor == PlayerRef
Debug.Notification("Level " + GP_01REF.GetLevel())
endif
EndEVENT
now the problem is ia have to make a diferent script with a different name for each actor in game !
instead i thought if i can add a function to get the actor main ID since each actor in game has a unique Main ID like this for example:
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool bHitBlocked)
If akAggressor == PlayerRef
GetID()
Debug.Notification("Level " + ID.GetLevel())
endif
EndEVENT
i Know there isnt any function called GetID(), but just to tell you what i would like to do.
or tell me how to do it in another way.
thx.