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
Problem with Ent_Create, Help Appricated :) #132626
05/29/07 22:55
05/29/07 22:55
Joined: Aug 2006
Posts: 9
J
Janine Offline OP
Newbie
Janine  Offline OP
Newbie
J

Joined: Aug 2006
Posts: 9
Hi all.
Having a problem generating enemys in my game. Currently, whenever i run my script, i get the error:

Code:
 Crash in generate_enemys1 ent_create (warlock, temp) 



The generate code is placed on a model, where i want the entity to be created.

Code:
  action generate_enemies1() //Generate The bad boys!
{

while (1)
{
wait (24 + random(24));
temp.x = my.x;
temp.y = my.y;
temp.z = my.z;
ent_create(warlock, temp);
wait (1);
}

}



All help is apricated!
Cheers

Re: Problem with Ent_Create, Help Appricated :) [Re: Janine] #132627
05/29/07 23:23
05/29/07 23:23
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
ent_create expects 3 parameters. The filename, the position, and the action name. Read the manual.


Always learn from history, to be sure you make the same mistakes again...
Re: Problem with Ent_Create, Help Appricated :) [Re: Uhrwerk] #132628
05/30/07 03:22
05/30/07 03:22
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
ent_create(warlock, my.x, enemy_action);


xXxGuitar511
- Programmer
Re: Problem with Ent_Create, Help Appricated :) [Re: xXxGuitar511] #132629
05/30/07 06:25
05/30/07 06:25
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
ent_create("warlock.mdl", my.x, some_function);


Never say never.

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