I have decided to make the game print player coordinates.  If I write the code 
as
text = vtos(self.origin);
it works fine, except that I want them spoken and printed as integers, so I did 
this:
void() snap_extnav_saycoord =

{

local float ac_x, ac_y, ac_z;

local string rc_x, rc_y, rc_z;

ac_x = rint(self.origin_x);

ac_y = rint(self.origin_y);

ac_z = rint(self.origin_z);

rc_x = ftos(ac_x);

rc_y = ftos(ac_y);

rc_z = ftos(ac_z);

sprint(self, 1, rc_x, "\n", rc_y, "\n", rc_z, "\n");

}


When I run this code, it only gives me one coordinate.  What do I do 
differently?
If I can learn this stuff, my next goal will be to track down every place the 
player goes, so you can, as in Shades of Doom, hit a key and find out if you've 
been to a particular place or not--but I'm still quite the newbie and don't 
find the manuals very helpful except for reference.  The rest I'm figuring out 
as I go.




Do you live near Sandusky Ohio, or are you planning a trip to Cedar Point?
Receive a massage at very competitive rates--$40 per hour for a revitalizing 
therapeutic massage,
$65 per house call--any time, anywhere (within reason.)  
Call 419-577-7973
I'll ease your pain and discomfort, loosen and mobilize your stiff joints, 
relax your achy muscles, and help you let go of stress, depression, and nervous 
anxiety...
Ken Downey, LMT

President of Blind Comfort!
The Caring Without the Staring
and
DreamtechInteractive
_______________________________________________
AGRIP-discuss mailing list
[email protected]
http://lists.agrip.org.uk/mailman/listinfo/agrip-discuss

Reply via email to