smusini Posted September 8, 2022 Share Posted September 8, 2022 This is a script that i made. To use it, i created a quest that instantly starts and has the player as a Quest Alias, and trough the alias editing window i assigned the script to the player alias. Scriptname MyTestScript extends ReferenceAlias int COUNTER = 0; Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) COUNTER+=1 Debug.Trace("This actor just equipped a weapon! "+COUNTER) EndEvent Event OnSit(ObjectReference akFurniture) Debug.Trace("We just sat on " + akFurniture) EndEvent Event OnDeath(Actor akKiller) Debug.MessageBox("LOL U DIED. U SUCK 3") EndEvent Event OnDying(Actor akKiller) Debug.MessageBox("LOL U ARE DYING.") EndEvent Event OnPlayerBowShot(Weapon akWeapon, Ammo akAmmo, float afPower, bool abSunGazing) Debug.Trace("The player fired a dud shot!") endEvent Event OnRaceSwitchComplete() Debug.Trace("This actor's race has finished changing") endEventOnDeath and OnDying are firing correctly, but everithing else isn't. Is it because the script isn't actually on the player, or is it something else?Thx for your time Link to comment Share on other sites More sharing options...
smusini Posted September 8, 2022 Author Share Posted September 8, 2022 Nevermind, i just was using Debug.Trace instead of the Debug.MessageBox that i was waiting for... how do you delete a thread? Link to comment Share on other sites More sharing options...
Recommended Posts