General Questions

Kram337

Active Member
I've taken to writing some scripts again and have a few questions. I'll invenvitably have more so will keep them all here.

First question:
Is there a way to determine if a Pawn/Actor is a named mob?
${Pawn[1].IsNamed} - would be fantastic

Second Question:
There is an .IsVisible appendage to VGUI but I can't figure out how to use it. I want to know if my character sheet/inventory is visible or not.
${VGUI[inventory].IsVisible} - would be great
 

Kram337

Active Member
Second Question (update):
Turns out I had it right, just needed an underscore.
${VGUI[_inventory].IsVisible} works. So now I just need to figure out what the name of the character sheet is. I can probably find that in the UI files some place.
 

Zandros

Script Author: VGA
I've taken to writing some scripts again and have a few questions. I'll invenvitably have more so will keep them all here.

First question:
Is there a way to determine if a Pawn/Actor is a named mob?
${Pawn[1].IsNamed} - would be fantastic
The only way I found how to know its a "named" target is by hard-encoding it into your script. If someone out there knows how, then that would be AWESOME! So far, I have used the following two types in checking:



if ${Me.Target.Name.Equal[GUAR]}
{
echo "This is a named"​
}

or

switch ${Me.Target.Name}
{
case GUAR​
echo "This is a named"​
break​

Default​
echo "Not a named"​
break​
}
 
Last edited:
Top Bottom