Hi Game Guru Community ! I've started a little game and i make a little script for spawn entity and i need a little help : i want to make a trigger zone, and when the player are in this zone, they are a timer and when he reached 1000, they spawn a entity in this zone. There is my script, but i don't know how i can make spawn an entity x)
-> I search on game guru forum but they spawn system is for make spawn entity who are present on the map (spawn NO at start)
I want to make an infinite spawn, if it's possible (like a-rpg)
So, how i can make this "special" spawn; if the Spawn() command is usefull for this idea ??
Thanks ^^
--
--Spawn Monster 001
local timer = {}
local timed = {}
function spawnnpc001_init(e)
timer[e] = 0
timed[e] = 0
end
function spawnnpc001_main(e)
if g_Entity[e]['plrinzone']==1 then
timer[e] = timer[e] + 1
if timer[e] == 1000
Spawn(*entity name, i think*)
timer[e] = 1
end
end
end