Jump to content

Recommended Posts

Posted

Hey T_T

i have problem... why my EPIC and Amazing script for MMO Spots is not working? xD

 

Image with all ingerents:

 

  Reveal hidden contents

 

 

 

Here is script one:

 

  Reveal hidden contents

 

 

 

Here is script two:

 

  Reveal hidden contents

 

 

 

 

I can see in game Debug Notifications but no new units...

 

After one unit die this script should spawn new...

Script should spawn new units every 30 sec untill all units got respawn

Posted (edited)

I erased the post because i was wrong....

Edited by maxarturo
Posted (edited)

maybe this is working..

 

 

  Reveal hidden contents

 

Edited by ReDragon2013
Posted (edited)

; be carful with next two variables, they make both Refs persistent as long as the script exists !!!

ObjectReference SpawnRef ; Ref where unit gonna be spawn
Actor ActorRef ; Ref which unit gonna be spawn

 

what exactly do u mean?

They will be bigger and bigger with every mob spawned?

 

ActorRef = NULL

or something will work to clear variable?

 

 

i think i know what is wrong but can't test it xDDD

First line of First Script: ( Scriptname QLG_Script_MMOSpot extends Actor )

 

Its because i rewrite other script for actor and forgot to change extends xD

probably when i change it to ObjectReference it will work fine :D but im not sure...

 

 

 

still i want to know what u mean by "Persistent" and what shouldn't i do with those variables

or what i should do to keep my script good :D

 

 

//Edit:

( QSpawnPoints.GetAt( Utility.RandomInt( 0 , QSpawnPoints.GetSize() ) ) as ObjectReference ).( QSpawnActors.GetAt( Utility.RandomInt( 0 , QSpawnActors.GetSize() ) ) as ActorBase )

 

xD

Edited by TobiaszPL
Posted (edited)

Persistent in programming means an object being retained in memory indefinitely. (The Reference can't be deleted.)

 

Papyrus NULL is none, so use none.

Edited by Rasikko
  • Recently Browsing   0 members

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