I'm trying to produce a script that allows the player to pick up an object and move it around. So far, I have this as my script but all it does is simply move the box to one specific location (regardless of where I look) whenever I execute the script.
I'm trying to produce a script that allows the player to pick up an object and move it around. So far, I have this as my script but all it does is simply move the box to one specific location (regardless of where I look) whenever I execute the script.
Any ideas?
#include "zcommon.acs"
script 1 (void)
{
while (TRUE)
{
CheckProximity (0, "Cube", 32.0);
SetActorPosition (1, (CheckPlayerCamera(PlayerNumber()) == -1), (CheckPlayerCamera(PlayerNumber()) == -1), (CheckPlayerCamera(PlayerNumber()) == -1) , 0);
delay(1);
}
}
Share this post
Link to post