Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem whit pointer #361565
03/03/11 20:17
03/03/11 20:17
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
Supposed i shoot a missile whit a "follow function" set to a entity pointer "target". Now my missle fly to the entity named "target" but it not reached the entity yet.

Now i select another entity... so the pointer "target" it set to this new entity and my missle change is way for reach this new target.

My problem its i want to my missle keep chasing the first entity. And if i shoot another one to a differente target i dont want the first one starting to chase the new target...

thx.

Re: Problem whit pointer [Re: Altarius] #361571
03/03/11 20:34
03/03/11 20:34
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
There is already a system - VECTOR called "target", maybe rename your entity solves the problem.

Re: Problem whit pointer [Re: Altarius] #361575
03/03/11 20:58
03/03/11 20:58
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
I dont use "target" .. just a exemple

And the problem its about how too lock the missile on the entity i targeted at the moment i have shooted it.. if i select another entity and the missile are already in fly , it should not set it destination too the new one...

Last edited by Altarius; 03/03/11 21:03.
Re: Problem whit pointer [Re: Altarius] #361601
03/03/11 22:10
03/03/11 22:10
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
You need a local pointer in the function that is controlling the missiles. Once you shoot your missiles assign the value of the global pointer to the local pointer.


Always learn from history, to be sure you make the same mistakes again...
Re: Problem whit pointer [Re: Altarius] #361605
03/03/11 22:25
03/03/11 22:25
Joined: Jul 2009
Posts: 85
A
Altarius Offline OP
Junior Member
Altarius  Offline OP
Junior Member
A

Joined: Jul 2009
Posts: 85
Nice! I get it work! Tank!


Last edited by Altarius; 03/03/11 22:29.

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