The Dink Network

Pushing an object.

July 7th 2003, 02:36 AM
pq_frog.gif
nwdel
Peasant He/Him
 
I want Dink to push an object. In my .c file I want to see in which direction Dink is pushing to see which way the object should go. What if-statement should I use?
July 7th 2003, 03:32 AM
custom_fish.png
SabreTrout
Noble He/Him United Kingdom
Tigertigertiger. 

if (sp_dir(1, -1) == 4)

Not exactly what you asked for, but that command will do whatever if Dink is facing left. You should be able to use that to help you on your script.
OMG, is this Sabre giving out scripting advice?!?!
July 7th 2003, 11:35 AM
wizardg.gif
Paul
Peasant He/Him United States
 
You might want tyo make that:
int &mydir = sp_dir(1, -1);
if (&mydir == 1)
Some functions work inside an IF, others don't. (so Saber's way may be just fine, but if not...)