Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 14,136 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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