map to qc help
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
map to qc help
im wondering how to get data from an entity written thru the map editor to be read in the qc file. i have a "helper" entity that displays different text based upon a value given in the mapping program. this way i can have multiple texts displayed by a single entity. its much more efficient than making a load of different entitys i suppose
but i can't get the value i give it in the map program to be used in the code of the game.
map: room with "helper" entity, helper properties: self.classname = "help1"
game:
void() helper =
//make solid, model, origin, etc... not sure if i need code from map here?
void() on_click=
if trace_ent.classname == help1 do...
get what i mean? thanks!
map: room with "helper" entity, helper properties: self.classname = "help1"
game:
void() helper =
//make solid, model, origin, etc... not sure if i need code from map here?
void() on_click=
if trace_ent.classname == help1 do...
get what i mean? thanks!
-

RooT - Posts: 40
- Joined: Wed Sep 07, 2005 1:28 am
You realise that a classname is all an entity actually needs? Origins help too...
Change the classname, change the entity.
Create some new fields, use the noise/noise2/noise3 fields, etc.
Don't rely on the classname field for messages.
Change the classname, change the entity.
Create some new fields, use the noise/noise2/noise3 fields, etc.
Don't rely on the classname field for messages.
- Spike
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest