eventName?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Cigs
Colour Sergeant
Posts: 90
Joined: Fri May 28, 2004 1:04 pm
Location: Gent - BELGIUM

eventName?

Post 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
Image
TS217.172.173.37:9095
Spearhead SDK Q's
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

mostly these..

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

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
Cigs
Colour Sergeant
Posts: 90
Joined: Fri May 28, 2004 1:04 pm
Location: Gent - BELGIUM

Post 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
Image
TS217.172.173.37:9095
Spearhead SDK Q's
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
Cigs
Colour Sergeant
Posts: 90
Joined: Fri May 28, 2004 1:04 pm
Location: Gent - BELGIUM

no eventName

Post 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!
Image
TS217.172.173.37:9095
Spearhead SDK Q's
Post Reply