-=BT=- Matty R 0 Posted August 16, 2004 ok this script worked with jam men, and i wanted it for just the origonal ofp soliders Quote[/b] ];start with ;[location of spawn,groupname,skill from 0-1,destination where group should move after creation] exec "AIspawn.sqs" ?!(local Server): exit _location = _this select 0 _Group = _this select 1 _skill = _this select 2 _destination = _this select 3 ;creating Infantry soldiers ;you can add more but use ~ delays and max. 12 units per group ~0.5 "OfficerE" CreateUnit [getpos _location, _group,"this allowfleeing 0;",_skill,"PRIVATE"] ~1 "SoldierEG" CreateUnit [getpos _location,_group,"",_skill,"PRIVATE"] ~1 "SoldierEAT" CreateUnit [getpos _location,_group,"",_skill,"PRIVATE"] ~1 "SoldierEMedic" CreateUnit [getpos _location,_group,"",_skill,"PRIVATE"] ~1 "SoldierEMG" CreateUnit [getpos _location,_group,"",_skill,"PRIVATE"] ~1 "SoldierELAW" CreateUnit [getpos _location,_group,"",_skill,"PRIVATE"] ~1 "SoldierEAT" CreateUnit [getpos _location,_group,"",_skill,"PRIVATE"] ;if you wish that the group moves to a location after creation #Moving ~1 _group setspeedmode "normal" _group setbehaviour "aware" ~1 _Group move (getpos _destination) Exit but i get an erro command thing saying OfficerE,SoldierEG so on, there something wrong with them? can any1 help.. Share this post Link to post Share on other sites
Softegg 0 Posted August 16, 2004 maybe the group doesn't exist at the beginning? Share this post Link to post Share on other sites
korax 4 Posted August 16, 2004 Make sure you exec'd it with [Logic1,Grp1,1,Logic2] exec "AiSpawn.sqs" NOT [getpos logic1,grp1,1,getpos logic2] exec "AiSpawn.sqs" where logic1 is where they are created and logic2 is where they move to. Share this post Link to post Share on other sites
-=BT=- Matty R 0 Posted August 17, 2004 hmm, i have its just it works with jam men?? Share this post Link to post Share on other sites
-=BT=- Matty R 0 Posted August 18, 2004 ?? anyone ?? must be someone out there who knows, its so i can start on my 5 mission project.. for ToW:JC for the people who dont have all the good addons and that.. Share this post Link to post Share on other sites
sanctuary 19 Posted August 18, 2004 Well, i tried your script in SP mode on a "clean" (no addons other than BIS) OFPR and here is the result Ingame i create myself I create another soldier, and in his init line , i wrote <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">TEAM1=group this; deletevehicle this (this way TEAM1 exist as a group in the mission beginning) Then i create a game logic , i name it THERE I create another game logic, away , i name it OVERTHERE Now i create a trigger activated by radio alpha At the line On Activation i write <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">[THERE,TEAM1,0.1,OVERTHERE] exec "AIspawn.sqs" Â I preview, then i type 0-0-1 to make the radio alpha call And soldiers are spawned at the THERE position and the group is going to the OVERTHERE game logic position. You are certainly doing something wrong, as what i wrote works perfectly for a clean OFPResistance (i keep the user addons in mods folders) Share this post Link to post Share on other sites
-=BT=- Matty R 0 Posted August 18, 2004 hmm ok thx mate ill try to see what im doing wrong. Share this post Link to post Share on other sites