Jump to content

How To Use Arrays In Functions?


Recommended Posts

Posted

I have found a small script here to start sex between 2 actors. However, in some cases I want special Animations.

 

Currently this is my script

 

Scriptname sl_slut_main extends Quest

SexLabFramework property SexLab auto

MiscObject Property Gold001 Auto




function SexCall(Actor SpeakerRef, int MoneyToPay= 0)

actor[] sexActors = new actor[2]
sexActors[0] = SpeakerRef
sexActors[1] = Game.GetPlayer()


Debug.Notification("Pay Gold")

if (MoneyToPay)
Game.GetPlayer().RemoveItem(Gold001, MoneyToPay, false)
EndIf


sslBaseAnimation[] anims
Debug.Notification("Starting Sex")
SexLab.StartSex(sexActors, anims)

endfunction

 

 

But how do I setup an array for anims = SexLab.GetAnimationsByTag(). My function will look like this

SexCall(Actor, Money, Position(s))

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...