Jump to content
ℹ️ Download History temporarily unavailable ×

superfranky

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by superfranky

  1. ScriptName MyFirstScript extends Quest
    
    Actor Property PlayerRef Auto
    FormList Property ArmorList Auto
    
    int ArmorCount
    Form[] ArmorForms
    
    Event OnInit()
        ArmorForms = New Form[20]
        ArmorCount = 0
    
        RegisterForRemoteEvent(PlayerRef, "OnItemUnequipped")
        PlayerRef.UnequipAll()    
        UnregisterForRemoteEvent(PlayerRef, "OnItemUnequipped")
    
    EndEvent
    
    Event Actor.OnItemUnequipped(Actor akSender, Form akBaseObject, ObjectReference akReference)
        
        if akBaseObject as Armor
    		ArmorForms[ArmorCount] = akBaseObject
    		ArmorCount += 1
    	Else
    		RETURN
    	endif
    
    EndEvent
    

    So I'm trying my hand at this scripting thing, and I've got a question I can't seem to find an answer anywhere.

    As it is right now, this script fires several events because of one PlayerRef.UnequipAll().

    Is there any way to call a function or do whatever only after all the Events have fired so I can do something with everything the Events collect?

  2. Hi. I'm decent 3d modeller and i want to mod Skyrim meshes. So i tried to use new Nifscope, opened existed .nif from game, exported it as .obj, edited in blender. But when i export it in obj, nifscope not displaying it (only black or without materials. If i export existed materials with it, it just gives me warning "material """ not found in matlib". So i tried to save it as nif and go play, and it gave me large red triangle of error instead of model. So what am i doing wrong and shall i wait for Tes kit? Thanks.
×
×
  • Create New...