Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
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
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
rocket #132848
05/31/07 11:57
05/31/07 11:57
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
how to atach a rocket to a spaceship at runtime and if i press anykey the rocket should come out of the spaceship(shoot out) and disappear.

Re: rocket [Re: prog] #132849
05/31/07 12:27
05/31/07 12:27
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
to create rocket write in player action:
if("your_key" ==1){you = ent_create("rocket.mdl",my.x,rocket_fun);}

function rocket_fun
{
my.passable = on; //to avoid colision with ship
my.pan = you.pan; my.tilt = you.tilt;
while(me)
{
c_move(me, bla bal bla); //read help
//then... if hit something or distance (my.x, player.x)> something or... whatever YOu want to
ent_remove(me);
wait(1);
}
}


Never say never.
Re: rocket [Re: tompo] #132850
05/31/07 19:51
05/31/07 19:51
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Check out the AUM magazine series too, you'll find almost everything exampled or answered for most projects.
Earlier editions may need script updates.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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