Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by AndrewAMD. 12/06/23 17:16
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (AndrewAMD, miwok, TipmyPip, 3run, 1 invisible), 631 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
entity initization and vector units #269228
06/02/09 10:53
06/02/09 10:53
Joined: Apr 2009
Posts: 18
U
umphafiz Offline OP
Newbie
umphafiz  Offline OP
Newbie
U

Joined: Apr 2009
Posts: 18
hi smile ,

two more thing!

1. for the command,
vec_add(tansmitter,vector(1,2,3));

what are the units of (1,2,3)? is it in quants or what?


2. i have an entity named uwbstick.mdl. I want to check whether it is hit or not, I wrote this way

entity* glass;
glass = <uwbstick.mdl>;

and then i check

if (you == glass)

but it gives me errors. could any one explain it?


asif

Re: entity initization and vector units [Re: umphafiz] #270194
06/06/09 20:08
06/06/09 20:08
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
I think the units are x, y and z as it is adding a vector.

'you' is for when the object is created or called by another object and changes on every wait instruction.
'My' is whats needed as it is inside the entity script I think.
if(!my)// if my does not exist
if(my < 1)
if(my != 1)

Hope Im on the right track here smile


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: entity initization and vector units [Re: KiwiBoy] #270441
06/08/09 11:16
06/08/09 11:16
Joined: Apr 2009
Posts: 18
U
umphafiz Offline OP
Newbie
umphafiz  Offline OP
Newbie
U

Joined: Apr 2009
Posts: 18
hi dear,

thanks for your reply. it is fixed now.

asif


Moderated by  HeelX, rvL_eXile 

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