Quick Start Guide
Requirements
Creating a New Project
Write Some Code
script HelloWorldQuest : Quest {
auto property PlayerREF: Auto
auto property Gold001: MiscItem
event OnInit() {
RegisterForSingleUpdate()
}
event OnUpdate() {
GiveGoldToActor(PlayerREF, 10)
}
def GiveGoldToActor(actor: Actor, amount: Int) {
actor.AddItem(Gold001, amount)
}
}Compile your Code
And that's it!
Last updated