any ideas how to fix this? so it attaches where it should? and doesn't look weird like that
Re: CTF Flag Problems
Posted: Sat Mar 21, 2009 12:20 pm
by Teancum
That's hilarious! A bubble head! Seriously though I'd say the model is going to need to be offset somehow.
Re: CTF Flag Problems
Posted: Sat Mar 21, 2009 12:44 pm
by YaNkFaN
yea i thought it was funny too but in mygeeto campaign the model shrinks and fits on the unit's hip now i figured this
SoldierAttachBone = "bone_pelvis"
would do the trick but it didn't and also it didn't shrink the model either
Edit: stupid me i forgot to put this .msh of the carried flag in the msh folder so it just reverted to the non carried geometry it works fine now also another question is there a way to stop units from crowding around their own flag in ctf like right now some reps go and get the cis flag and vice versa but majority of both teams stand around the flag like they're trying to capture it i was thinking changing the goals to deathmatch but i don't know if that involves editing the objective_ctf script or what not.
Re: CTF Flag Problems
Posted: Sat Mar 21, 2009 1:57 pm
by Maveritchell
Read psych0fred's "AI Goals" document; it covers almost exactly what you want to do with the examples he uses.
Re: CTF Flag Problems
Posted: Sat Mar 21, 2009 2:15 pm
by YaNkFaN
yes it does now i assume this goes in scriptpostload right? not scriptinit?
Re: CTF Flag Problems
Posted: Sat Mar 21, 2009 2:16 pm
by Maveritchell
Yes.
Re: CTF Flag Problems
Posted: Sat Mar 21, 2009 2:18 pm
by YaNkFaN
Edit the level works but no AI spawn the debug log gave me this error
Message Severity: 3
.\Source\LuaHelper.cpp(312)
CallProc failed: bad argument #4 to `AddAIGoal' (string expected, got nil)
stack traceback:
[C]: in function `AddAIGoal'
(none): in function `ScriptPostLoad'
so that's the problem but i don't know how to fix it.
also these errors are right above the severity: 3
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "team1_capture" not found
updating markers for flag: flag2
no carrier
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(635)
Entity "team2_capture" not found
updating markers for flag: flag1
no carrier
but in ZE the regions exist..
Re: CTF AI Spawning problems
Posted: Sat Mar 21, 2009 7:24 pm
by Frisbeetarian
Maybe this will help; it's how the Kashyyyk ctf Lua was set up. Many other Lua scripts did it somewhat like what you did, judt they put it directly after the ctf:Start() or whatever other start it was using. Another thing is that after looking through a bunch of scripts, none of them cleared the AI goals, and while I know it should work, you can try it without that line.
I wouldn't think that's necessary but it's worth a try.
Re: CTF AI Spawning problems
Posted: Sat Mar 21, 2009 9:02 pm
by YaNkFaN
hmm i did try the kash way and it was an interesting effect
the CTFOffense again when added didn't spawn units but the deathmatch and ctf defense worked quite nicely i'm assuming that ctf offense is already in the default ctf objective so calling it twice called the error possibly i'll try adding the activate region lines and then adding the ctfoffense objective to see what happenes
Re: CTF AI Spawning problems
Posted: Mon Mar 23, 2009 11:58 pm
by Jaspo
Lol, that first pic needs to be made into a PotD. Funny captions, anyone?