Added the F9 (toggle FoW) function that Gambit had in his exec file.
Replying to Dawn of War - Soulstorm [screenshot mumbo-jumbo thread]
Topic Summary
mdcertainty
Posted 18 April 2018 - 08:40 AM
fuggles
Posted 26 February 2018 - 08:43 PM
It's just a guess, but NIS is for cutscenes. That's not to say you couldn't instigate a cutscene.... the spore fall for tyranids in the latest survival I coded used nis, as does smack talk I suppose.
Gambit
Posted 26 February 2018 - 07:41 PM
Ah...
So it is not for regular games???
To create the code is EXTREMELY easy (I was JUST ABOUT to do it), but if the command does not work...
fuggles
Posted 26 February 2018 - 07:10 PM
This may only work inside an NIS - The method of replacing with blank graphics certainly worked in ye olde days.
mdcertainty
Posted 26 February 2018 - 11:23 AM
Tried this one with a loaded game
bind("F1","Util_NIS_ToggleModifierEvents( World_GetPlayerAt( 0 ), false )")
didn't do nothing the wench was still on the builder unit in this test.
edit
I've tried
bind("F1","Util_NIS_ToggleModifierEvents( World_GetPlayerAt( 0 ), true )")
same thing
mdcertainty
Posted 26 February 2018 - 11:02 AM
@Gambit
Could you just post the code that would be used since some of us (like myself) do not have a clue about scar, and toggleable would be best and for ALL players.... THANKs
Also is it possible to add many functions to just one keybinding, like removing all the aspects regarding GUI I've post in the 1st post? I guess so but is it?
@Kasrkin84
Thanks will test that ASAP
Gambit
Posted 26 February 2018 - 10:49 AM
I guess, instead of World_GetPlayerAt( 0 ) he could use World_GetPlayerAt( Tut_GetLocalPlayerIndex() ) for the local player, or even a FOR loop removing all players' FXes....
It could also be togleable
Kasrkin84
Posted 26 February 2018 - 04:27 AM
You haven't set the variables for the function correctly. "player" needs to be a player ID, and "state" must be either true or false (false will remove the FX). So, something like this:
Util_NIS_ToggleModifierEvents( World_GetPlayerAt( 0 ), false )
mdcertainty
Posted 25 February 2018 - 11:02 PM
I've tried it this way
bind("shift+tab", "toggle_screenmode()") bind("F1","Util_NIS_ToggleModifierEvents( player, state )") bind("F2","setsimrate(4)") bind("F3","setsimrate(8)") bind("F4","setsimrate(500)") bind("F5","ingame_stats_toggle()") bind("F6","ingame_select_ui_toggle()") bind("F7","cursor_hide()") bind("F8","cursor_show()")
And have loaded a saved game all works but not the Util_NIS_ToggleModifierEvents did I do something wrong in the code. Hiting F1 does nothing I only checked the builder icon so far as you stated it would disappear.
Kasrkin84
Posted 25 February 2018 - 09:18 PM
Never really used replays before, so I couldn't say for sure.
I suppose you could try adding it to a key binding in autoexec.lua and seeing what happens.