User Control Dilema

For discussions regarding skinning and mapmaking for Warcraft 3.

Moderator: Moderators

User Control Dilema

Postby BjorlerTFreely » Thu Jun 19, 2008 7:07 am

Hey there, folks. I need to know if there's any way to remove user control (via the action, or with the cinematic mode or letterbox actions) while still displaying critical hits and such to the user - an interesting dilema to be sure. If this question's been asked and answered already I apologize; I just don't have the time and patience to dredge through the forum on this fine morning.

Thank-you and good day,
Bjorler
BjorlerTFreely
 
Posts: 4
Joined: Thu Jun 19, 2008 6:52 am

Re: User Control Dilema

Postby Tirion » Thu Jun 19, 2008 9:49 am

I've actually been wondering this too.
Image
User avatar
Tirion
 
Posts: 413
Joined: Mon Jul 03, 2006 1:27 am
Location: Lurking

Re: User Control Dilema

Postby Tirion » Sat Jun 21, 2008 4:37 pm

This disables control, but still shows all icons, the mouse, and floating text. However, the minimap and unit portraits are just black while control is disabled.
Code: Select all
    function DisableControl takes nothing returns nothing
        call ShowInterface(false, 10000)
        call EnableUserControl(true)
    endfunction

    function EnableControl takes nothing returns nothing
        call ShowInterface(true, .001)
    endfunction

If you actually want it to enter letterbox mode you can replace the 10000 and the .001 with the fade durations.

EDIT: Actually, I don't think this does what I thought it did. You're probably better off ignoring this.
Image
User avatar
Tirion
 
Posts: 413
Joined: Mon Jul 03, 2006 1:27 am
Location: Lurking


Return to Custom Mapmaking

Who is online

Users browsing this forum: No registered users and 3 guests