Page 1 of 1

eventName?

Posted: Mon Jun 07, 2004 4:22 pm
by Cigs
MOHAA Script language appendix A - tutorial from The Rjunan Project
Command: waitTill
Syntax: waitTill ( String eventName )
Example: $vip_player waitTill death

Description: Wait until event of type eventName
wich possible ways to use them :?:
what are possible eventNames ?

i think

-prespawn (level waiTill prespawn)
-spawn (level waitill spawn)
- ..
.. but are there more. aren't threre. if anyone can tell alittlebit. allright - ty

Posted: Mon Jun 07, 2004 5:52 pm
by lizardkid
mostly these..

$guy1 waittil death
$trigger waittil trigger
$guy2 waittil animdone
$guy3 waittil satdone
$thing waittil movedone

Posted: Mon Jun 07, 2004 7:26 pm
by nuggets
lizardkid wrote:mostly these..

$guy1 waittil death
$trigger waittil trigger
$guy2 waittil animdone
$guy3 waittil satdone
$thing waittil movedone
2 "L"'s in waittill

$player waittill death //will only work in SP
$player waittill pain

$player waittill animdone
$player waittill upperanimdone

$player waittill saydone

$player waittill turndone

$vehicle waittill drive

$object waittill damage

$object waittill sounddone

$object waittill touch //used mainly for debris, not very common

level waittill spawn
level waittill prespawn
level waittill postthink
e.g's though

$player turnto $enemy
$player waittill turndone
//do something

Posted: Mon Jun 07, 2004 8:18 pm
by lizardkid
most of those (waittill animdone, wattill pain, etc.) are for AI, at least most commonly used for them.
sorry, he's right. two L's.

Posted: Mon Jun 07, 2004 8:57 pm
by Cigs
most of those (waittill animdone, wattill pain, etc.) are for AI, at least most commonly used for them.
sorry, he's right. two L's.
sorry to hear most are for AI. $player is an AI, but is a multiplayer also considered a $player ?

im trying to get a while (1) script run with $player waitTill death.
with help from bgbodger i was able to create dogs attacking either only allies or axis. but they still attack after dying.
stuck right here

Posted: Mon Jun 07, 2004 9:01 pm
by lizardkid
i think dogs do 10 damage right? try maknig ten $player waittil damage.
i know, slower and not exactly efficient but it's all i can think of.

i meant that they're most commonly used for AI, they can be used for either. at the time i didn't know what you were looking for. :wink:

no eventName

Posted: Wed Jun 16, 2004 4:37 pm
by Cigs
well, i was forced to do it this way:

for (local.playtm=1;local.playtm <= $player.size;local.playtm++)
{

...

if ($player[local.playtm].health == 0)
{
$player[local.playtm] threatbias ignoreme
wait 15
}
}

(when specific player's health is 0 -> ignore this player for 15 secs)
without using an eventName.

thx for assisting! :P
Cigs!