UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: jei9363 on April 29, 2014, 02:09:44 am

Title: [TUTORIAL] Disable Character Dialog (1 function)
Post by: jei9363 on April 29, 2014, 02:09:44 am
haven't thoroughly tested every case, but it seems to work pretty effectively. plus there's no real chance of freezing

soo.. this  may be a little bit of a WIP but I havent been able to get the player to talk.. level.player_is_speaking is pretty widely used

go to _zombiemode_weapons.gsc

in init()

add

Code Snippet
Plaintext
thread always_speak();

under init(){}

add

Code Snippet
Plaintext
always_speak()
{
while(1)
{
level.player_is_speaking = 1;
wait .1;
}
}

we'll see how it goes :P
Title: Re: [TUTORIAL] Disable Character Dialog (1 function)
Post by: daedra descent on April 29, 2014, 02:40:58 am
Unsurprisingly it works. Just as a friendly FYI, the function can be called in any script as far as i know since the variable is a levelwide one. I tried in _zombiemode.gsc anyway and it worked.