2 registered members (AndrewAMD, juanex),
1,247
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
[ANET] NPC, ENEMY Pointer
#420868
04/05/13 10:12
04/05/13 10:12
|
Joined: Jul 2011
Posts: 55 Berlin, Germany
Sammy32
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2011
Posts: 55
Berlin, Germany
|
hi,
how i can create the globalpointer for an entity was create with WED and this entity has an action with an enemy/npc script. What is the best way?
have everyone an script?
action enemy(){ ...... }
I use A-net Pro
Last edited by Sammy32; 04/05/13 10:13.
- 3d Gamestudio Commercial - - ANET Pro - <JAVA | PHP | HTML | Flash > DEVELOPER
|
|
|
Re: [ANET] NPC, ENEMY Pointer
[Re: rayp]
#420870
04/05/13 10:52
04/05/13 10:52
|
Joined: Jul 2011
Posts: 55 Berlin, Germany
Sammy32
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2011
Posts: 55
Berlin, Germany
|
hi,
in my multiplayer game (A-NET) , i have create a map with WED, all Enemys have become an Action for the movement and the ai.
But the Globalpointer cant use for the moment, i have read, i must create an globalpointer with "enet_svent_create(i, &creating_pos);", but i cant create the entity in livetime, the entity is create at levelstart. Please help me with an example. and i hope somebody understand my problem special thanks
- 3d Gamestudio Commercial - - ANET Pro - <JAVA | PHP | HTML | Flash > DEVELOPER
|
|
|
Re: [ANET] NPC, ENEMY Pointer
[Re: MasterQ32]
#420910
04/06/13 11:29
04/06/13 11:29
|
Joined: Jul 2011
Posts: 55 Berlin, Germany
Sammy32
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2011
Posts: 55
Berlin, Germany
|
hi,
ok thank you very much, it works fine.
If i start a Server and a start a client it works fine. if start a server/client in one application i have some problems, in this mode start the Action 2 Times , how can make a difference between this actions.
action enemy(){ if(......) // only server
if(....) // all clients and the server/client - client part }
enet_get_connection() has onyl the information about the applictaion.
thank you for you response and help
best regards
Last edited by Sammy32; 04/06/13 11:30.
- 3d Gamestudio Commercial - - ANET Pro - <JAVA | PHP | HTML | Flash > DEVELOPER
|
|
|
Re: [ANET] NPC, ENEMY Pointer
[Re: Sammy32]
#420920
04/06/13 16:33
04/06/13 16:33
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
enet_get_connection() can return: CLIENT_MODE SERVER_MODE SERVER_CLIENT_MODE
means: If(enet_get_connection() == SERVER_MODE || enet_get_connection() == SERVER_CLIENT_MODE) { ... } else if(enet_get_connection() == CLIENT_MODE) { ... }
Last edited by Ch40zzC0d3r; 04/06/13 16:34.
|
|
|
Re: [ANET] NPC, ENEMY Pointer
[Re: Ch40zzC0d3r]
#421155
04/12/13 06:58
04/12/13 06:58
|
Joined: Jul 2011
Posts: 55 Berlin, Germany
Sammy32
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2011
Posts: 55
Berlin, Germany
|
Hi,
thank you for the help,
the problem is fixed,
I have build some enemys , with spawn points and some aggro management.
Thanks to All
Best regards
- 3d Gamestudio Commercial - - ANET Pro - <JAVA | PHP | HTML | Flash > DEVELOPER
|
|
|
|