Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 813 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
More help with Kinji's tutorial? #92662
10/01/06 15:26
10/01/06 15:26
Joined: Feb 2005
Posts: 1,785
Jesusland
Towelie Offline OP
Serious User
Towelie  Offline OP
Serious User

Joined: Feb 2005
Posts: 1,785
Jesusland
Ok, so I overcame my last problem, and I've moved onto vectors. This code is supposed to make the entity face the same way as the player and be slightly above the player using vectors. So, I made my script and placed my character in the level, then assigned the action to a model. Heres my code:

Code:
 
var vect_ori[3];
var vect_pos[3];

function func_mimic()
{
while(1)
{
vect_pos.x=player.x;
vect_pos.y=player.y;
vect_pos.z=player.z+30;

vect_ori.pan=player.pan;
vect_ori.tilt=player.tilt;
vect_ori.roll=player.roll;

my.x=vect_pos.x;
my.y=vect_pos.y;
my.z=vect_pos.z;

my.pan=vect_ori.pan;
my.tilt=vect_ori.tilt;
my.roll=vect_ori.roll;
}
wait(1);
}

action mimic
{
my.enable_scan=on;
my.event=func_mimic;
}




Jimmy died, today, he blew his brains out into the bay, in the state of mind, its my own private suicide. A stitch in time saves nine... what the hell does that mean?!?
Re: More help with Kinji's tutorial? [Re: Towelie] #92663
10/03/06 18:53
10/03/06 18:53
Joined: Aug 2006
Posts: 7
S
Shaba1 Offline
Newbie
Shaba1  Offline
Newbie
S

Joined: Aug 2006
Posts: 7
what or what is "Kinji's" tutorial?


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1