Ok I have posted this on smallg's section but i know he's busy with AGK atm so i thought I'd punt it out to you guys see if anyone has a solution what I'm trying to do is spawn guards after you commit a crime, now it all is working apart from the spawn part so I have obviously missed something (my ai scripting is not so cleaver) lol
So you commit a crime and you gain Infamy points now this all works correctly in my RPG menu script (all adds correctly) but if you have above 0 Infamy i need guards to spawn here's what i have
g_infamy = 0
function guardspawn_init(e)
entity_number1 = 6
entity_number2 = 7
entity_number3 = 8
entity_number4 = 9
--etc
end
function guardspawn_main(e)
if g_infamy => 0 then
Spawn(entity_number1)
Spawn(entity_number2)
Spawn(entity_number3)
Spawn(entity_number4)
--etc
end
end
end
anyone spot what I'm missing?
and why on earth does the editor keep asking for a then near = g_infamy there is already one there?
Cheers
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel
I only smile because i have absolutely no idea whats going on