Aller au contenu

Is this Script ok?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Guest_templarioseco_*

Guest_templarioseco_*
  • Guests
I want to add a creature to the party camp, i dont need to use flags since this is a module script, so it will be run once, right? i took this from the wiki and changed the coordinates and the area, please check it.


#include "wrappers_h"
void main()
{
    {
        object oTown = GetObjectByTag("cam100ar_camp_plains"); 
        vector vJobloLocation = Vector(136.786,119.573,-0.145223);            
        CreateObject(
        OBJECT_TYPE_CREATURE,
        R"enano1.utc",
        Location(oTown, vJobloLocation, 180.0f) //See below for how to get the value for orientation

        )
    }
}


If this is in the worng section please some gm or administratior move it :)

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
Module scripts do need to be filtered by events. They are run quite often.



This would be fine as a PRCSCR script, provided you put a ";" after "180.0f)" . See my signature for links on adding resources to existing areas.

#3
Guest_templarioseco_*

Guest_templarioseco_*
  • Guests
thanks man, ill br trying this :)