i have two questions (read the bottom for question 2)...anyway for my mission i am making the port area in Corazol a hostage and bomb situation. the hostages are supposed to spawn in one of 3 warehouse buildings in the port.
im using a script that spawns two guys in a random location. the script works fine but I am having trouble with the hostages spawning on the outside of the building when they get created.
i think its because the game is trying to spawn them on the roof but the game doesnt allow that and spawns them outside around it...
what do i need to add to get them to spawn inside somewhere?
heres the script
_hostages = createGroup west;
_locations = ["hostage1", "hostage2", "hostage3"]
_rndloc = (random (count _locations)) - 0.5
_spot = _locations select _rndloc
_hos1 = _hostages createUnit ["SoldierWB", (getmarkerpos _spot), [] ,0 ,"corporal"];
removeallweapons _hos1
_hos1 setcaptive true
_hos1 setDir random 360;
_hos1 allowfleeing 0;
_hos1 setBehaviour "AWARE";
_hostages selectLeader _hos1;
_hos1 switchmove "testsurrender";
_hos1 DisableAI "ANIM";
~1
_hos2 = _hostages createUnit ["SoldierWB", (getmarkerpos _spot), [] ,0 ,"private"];
removeallweapons _hos2
_hos2 setcaptive true
_hos2 setDir random 360;
_hos2 allowfleeing 0;
_hos2 setBehaviour "AWARE";
_hos2 switchmove "testsurrender";
_hos2 DisableAI "ANIM";
also how do i get a trigger to spawn in the same area that the hostages are in?