Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, dpn), 1,346 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
(anet) weapon generator #402983
06/13/12 03:31
06/13/12 03:31
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
I just wanted to ask how to create an object correct with anet.
I tryed:

Code:
action weapon_generator()
{
	set(my,PASSABLE); 
	set(my,INVISIBLE);
	
	wait(1);
	while (my)
	{
		wait(-10);
		ent_create ("deagle.mdl", vector(-600 + random(1200),-600 + random(1200),my.z), deagle); 
		
		wait(1);
	}
}



But that doesn't happen at the same time with all clients...
What do I have to do?



Re: (anet) weapon generator [Re: Random] #402986
06/13/12 07:40
06/13/12 07:40
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
you need to send a trigger (variable, skill or so) to the clients, they need to ask if this trigger is set, and activate the function again local by their own.

like:
server creates model -> server set trigger -> send var to all clients -> client get trigger -> client create model


when a client creates the model, the client needs to send the trigger to the server:
client creates model -> sets trigger -> send var to server -> server creates model -> server set trigger -> send var to all clients -> client get trigger -> client create model (except the start client)


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: (anet) weapon generator [Re: Espér] #402989
06/13/12 08:10
06/13/12 08:10
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
enet_svent_create
enet_clent_create
you need to register the model as a global anet model
look in the manual for examples


offtopic:
ist doch schön, wenn wir deutschen und ans forum anpassen und englisch schreiben grin


Visit my site: www.masterq32.de
Re: (anet) weapon generator [Re: MasterQ32] #402990
06/13/12 08:23
06/13/12 08:23
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
i really should update my anet xD


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: (anet) weapon generator [Re: Espér] #402995
06/13/12 09:21
06/13/12 09:21
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
yes, would be helpful laugh


Visit my site: www.masterq32.de
Re: (anet) weapon generator [Re: MasterQ32] #402996
06/13/12 09:24
06/13/12 09:24
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
problem is: i'm not using ANet.. cause it is non-commercial only laugh


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: (anet) weapon generator [Re: Espér] #403012
06/13/12 15:06
06/13/12 15:06
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
When you have ANet Web/Standard/Professional, you can of course use it for commercial projects! Only the demo edition must not be used for commercial projects.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: (anet) weapon generator [Re: Dark_samurai] #403067
06/14/12 02:53
06/14/12 02:53
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
off topic.
MasterQ32:
Das ist wirklich unglaublich. Wir deutschen sind sehr anpassungsfahig.
Siehst du? Ich benutze im Moment sogar eine Amerikanische Tastatur ^^

On topic.
Thanks. I will try it out.
And are there any open scoure games made with Anet??
I would really like to tare one appart, mash it back together and run a thousends of test with the mashed pices ^^



Re: (anet) weapon generator [Re: Random] #403109
06/14/12 15:15
06/14/12 15:15
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Germanunkol made a small open source shooter example with ANet. You can get it here: http://www.anet-plugin.com/downloads_eng.htm

But the code got a bit messy because of my changes when I adapted it to new ANet versions...


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: (anet) weapon generator [Re: Dark_samurai] #403148
06/15/12 06:50
06/15/12 06:50
Joined: Apr 2005
Posts: 796
U.S.A. Michigan
exile Offline
User
exile  Offline
User

Joined: Apr 2005
Posts: 796
U.S.A. Michigan
Hey feel free to send me a message. Dark_Samurai actually just helped me out on the issue after explaining/reminding me how ANET works! Because of his help, I managed to make a weapon spawner that 100% works flawlessly!

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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