Hi all!
I made a script on a invisible placeable wich onheartbeat randomly creates a random "place". I placed several of this placeables on the map wich should work and each one be one of the random "places" i defined. Ok till now we are ok and it works!... the thing is that today testing the module i opened a placeable with his own tag and name, and even in other area, and suddenly one of the "places" appeared in the place of this placeable... WTF??
I really cant figure out what happened there... a strange bug.
This is part of the code to the "places" creator:
#include "X0_I0_POSITION"
#include "x2_inc_switches"void main(){object oO = OBJECT_SELF;location oL = GetLocation(oO);int nL = Random(24)+1;if(Random(3000) > 2830 && GetLocalInt(oO, "Lugar")== 0){if (nL == 1) Creates the place number 1 etc.
I thought that maybe i need to add some event handler like this:





Retour en haut







