Entity name loading
Moderator: InsideQC Admins
2 posts
• Page 1 of 1
Entity name loading
Well, I have a small problem. I have been attempting to create a waypoint system (with much success) for monster navigation, and I seem to be having a problem with exporting the waypoints out of a map.
Now, I have a waypoint linking system, that each waypoint can store up to 4 other values, similar to how the frikbot waypoints store links, using entities
heres an example of the code
self.cway.link1 = lway;
so self(player)'s cway (current waypoints) link1 (first link haha) is the last waypoint visited by the player.
this works like a charm, and have even gotten' the waypoints to draw lightning lines to their links.
However, when I debug the waypoints (for putting into a worldspawn function to spawn them), I'm not sure how to get the waypoints link names
example, if cway.link1 = saidwaypoint, what is the value it's setting it to?
unfortunately there is no entity to string function XD (ftos)
I'm not sure what to put for the link values... help?
how do I find the "name" quake gives an entity for being able to recall it next time someone loads the map?
thanks
this may be confusing, but i'm a bit rushed on time, i'll be back to organize
-blubswillrule
Now, I have a waypoint linking system, that each waypoint can store up to 4 other values, similar to how the frikbot waypoints store links, using entities
heres an example of the code
self.cway.link1 = lway;
so self(player)'s cway (current waypoints) link1 (first link haha) is the last waypoint visited by the player.
this works like a charm, and have even gotten' the waypoints to draw lightning lines to their links.
However, when I debug the waypoints (for putting into a worldspawn function to spawn them), I'm not sure how to get the waypoints link names
example, if cway.link1 = saidwaypoint, what is the value it's setting it to?
unfortunately there is no entity to string function XD (ftos)
I'm not sure what to put for the link values... help?
how do I find the "name" quake gives an entity for being able to recall it next time someone loads the map?
thanks
this may be confusing, but i'm a bit rushed on time, i'll be back to organize
-blubswillrule
A truly rewarding experience for an AI coder: watching your ai navigate the map... makes all the time invested in the code worth it 
-

blubswillrule - Posts: 68
- Joined: Mon Oct 04, 2010 9:08 pm
- Location: Lincoln, California
FIXED!!
I found out that...
commmand "eprint(entity_name)" prints details on an entity, mainly for debugging.
I found out that...
commmand "eprint(entity_name)" prints details on an entity, mainly for debugging.
A truly rewarding experience for an AI coder: watching your ai navigate the map... makes all the time invested in the code worth it 
-

blubswillrule - Posts: 68
- Joined: Mon Oct 04, 2010 9:08 pm
- Location: Lincoln, California
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest