Game Development Community

Triggers... Grrrr!

by Mike "wowo" Miller · in Torque Game Engine · 01/16/2003 (6:12 pm) · 1 replies

Hi,

I'm creating a player as a FlyingVehicle rather than a Player using the following code:

%player = new FlyingVehicle() {
      dataBlock = airscout;
      client = %this;
   };
   MissionCleanup.add(%player);

The problem is, that I can't trigger any triggers. Does anyone know what I'm doing wrong? I put an echo() in onLeaveMissionArea in game.cc, but it never shows up when I leave the mission area.

[edit]
Stupid mistake on my part.... I think the normals for the polyhedron got inverted somehow :)
[/edit]

Thanks!
Mike

#1
01/22/2003 (8:53 pm)
Here's a post on adding mission area bounds checking, I added it to Items. I didn't think vehicles had that feature. But i guess they do now that I read your post a second time.

Anyways, here's the Item thing.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3792

Robert