if and case and stuff Created 18 years ago2005-10-06 06:55:42 UTC by Howdy Howdy

Created 18 years ago2005-10-06 06:55:42 UTC by Howdy Howdy

Posted 18 years ago2005-10-06 06:55:42 UTC Post #139702
im not really need to know, its not really a problem ive got. im just curious.
are there any way to make a if setance? like for example:
if "barney" = dead; then
blabla something...
else
blabla something else
fi

or "case" for that matter...
what about variables? it would be really handy with a variable sometimes.

it prolly aint posible, or even nessesary. lmao
but i would just like to know
  • peace :)
Posted 18 years ago2005-10-06 08:26:35 UTC Post #139728
Try a C++ syntax, coz the HL engine was made in C++:

if (barney=dead)
{
<actions>
}

Although I doubt that it's possible to have variables in level design.. Theres a trigger_counter, though... Info on it here :)
Daubster DaubsterVault Dweller
Posted 18 years ago2005-10-06 09:12:23 UTC Post #139743
Use TriggerTarget and
TriggerCondition

something like variables could be done with env_globals
ChickenFist ChickenFist<Witty Title>
Posted 18 years ago2005-10-06 10:15:07 UTC Post #139765
well... if i can set up a cpp script that would be great. though i dunno how i would connect the map and the script, or a compiled executable.

thanks chicken, ill do some research on em'
You must be logged in to post a response.