Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

WTF - Triggers

Page: 1 of 1
 GangsterAngel
06-18-2004, 10:21 PM
#1
im trying to make a race system for a mod..
i set the key and value in radient map editor.. but it dosent look
like JA is loading the values,, it always thinks its 0

// Race Test
trap_SendServerCommand( -1, va( "print \"^3Check-Hit"));

if (ent->team=="checkpoint1" && other->client->ps.racecheck==0) {
trap_SendServerCommand( other-g_entities , va( "print \"Checkpoint 1 hit"));
other->client->ps.racecheck=1;
}

if (ent->team=="checkpoint2" && other->client->ps.racecheck==1) {
trap_SendServerCommand( other-g_entities , va( "print \"Checkpoint 2 hit"));
other->client->ps.racecheck=2;
}

if (ent->team=="checkpoint3" && other->client->ps.racecheck==2) {
trap_SendServerCommand( other-g_entities , va( "print \"Checkpoint 3 hit"));
other->client->ps.racecheck=3;
}

if (ent->team=="start" && other->client->ps.racecheck==3) {
trap_SendServerCommand( other-g_entities , va( "print \"start Checkpoint hit"));
other->client->ps.racecheck=0;
} if ( G_SpawnString( "noise", "", &s ) )
 GangsterAngel
06-22-2004, 9:52 AM
#2
Thanx for the reply's .. :evanpiel:
 Wudan
06-24-2004, 3:48 PM
#3
Well, it sounds like a complex system.

Why the teamnames and whatnot - what's supposed to happen when players touch the triggers, and why?
 GangsterAngel
06-25-2004, 8:19 PM
#4
thay R checkpoints . for a race mode
 razorace
06-30-2004, 6:39 AM
#5
How exactly are you checking for players touching the checkpoints?
Page: 1 of 1