Difference between revisions of "DropAllItems"

Jump to navigation Jump to search
43 bytes added ,  10:31, 7 March 2008
m
functions won't accept anything but a number or a variable as argument
imported>Qazaaq
(added to useful code category)
imported>Qazaaq
m (functions won't accept anything but a number or a variable as argument)
Line 6: Line 6:
ref CurObj
ref CurObj
short CurObjNum
short CurObjNum
short LastObj
float fquestdelaytime
float fquestdelaytime
   
   
Line 15: Line 16:
     if ActorRef
     if ActorRef
       if ActorRef.GetNumItems > 0
       if ActorRef.GetNumItems > 0
         set CurObj to ActorRef.GetInventoryObject (ActorRef.GetNumItems - 1)
         set LastObj to ActorRef.GetNumItems - 1
        set CurObj to ActorRef.GetInventoryObject LastObj
         set CurObjNum to ActorRef.GetItemCount CurObj
         set CurObjNum to ActorRef.GetItemCount CurObj
         ActorRef.Drop CurObj CurObjNum
         ActorRef.Drop CurObj CurObjNum
Anonymous user

Navigation menu