View previous topic :: View next topic |
Author |
Message |
RooT

Joined: 07 Sep 2005 Posts: 40
|
Posted: Thu Oct 13, 2005 6:23 am Post subject: 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! _________________ My mod site!
Mod Status:
Turret Defense: 30%
UPS: 45% |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Thu Oct 13, 2005 7:23 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
|