Any errors in console? (check all the way up)
nope, waded through the friendly.scr console spam and found my debug lines telling me everything was fine...
Code: Select all
Where did you place this line? Isn't there suppose to be a master in front? Why maps "local" instead of your map name? If this is in your script also the first 'local' should be quoted like "local".
Alright this might be it, i don't have a ScriptMaster (local.ScriptMaster = ... right?) and all my aliascache's are built the same.
because it's a script thats gonig to be in who-knows-what maps. I wanted to make it as universal as possible
Being my normal clever self i put it in a global script and exec'd it from there so as not to spam my real script...
use targetname not $targetname .. with $targetname you won't get proper targetname arrays (though that doesn't have to be a problem right now, just a good habit to possibly safe some trouble in the future).
alright, but what's the difference? is $targetname used for different AI or something?
UPDATE:
tried the targetname thing, didnt work. my scripts are like this now:
Code: Select all
////////////////////////*******************Preparatory*******************//////////////////////
speakerbox:
// makes a dummy speaker for the player's voice commands.
spawn fx/dummy.tik "targetname" "playerSpeeker" "origin" "$player.origin"
$playerSpeeker glue $player
end
// farther down
case "advance" : print "~!!!~SQUAD~!!!~ ADVANCE order detected"
thread command_ADVANCE
setcvar squadcommand ""
$playerSpeeker playsound SS_advance1
and the sound cache:
Code: Select all
local.master = aliascache SS_advance1 sound/dialogue/Generic/A/directive/dfr_directive_195j_2.wav soundparms 1.0 0.0 1.0 0.0 160 1600 local loaded maps "local"
exact code that refers to it, i was hesitant to post the case because i remember what happened with AlienX, but if i'm going to get this fixed i'm gonna have to post it somewhere
btw this is not the death script thingy, this is set up exactly the same though.