Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
7 registered members (EternallyCurious, 7th_zorro, Ayumi, Quad, AndrewAMD, ricky_k, 1 invisible), 497 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Passing YOU in function EFFECT #452649
06/20/15 18:58
06/20/15 18:58

M
Malice
Unregistered
Malice
Unregistered
M



The manual does not state that if function EFFECT is run from a entities action/function that the entities pointer is pass as the YOU point.
This should be in the notes for function EFFECT.

Or am I just benefiting from good/bad timing as the manual state EFFECT runs at the next wait?

Is the YOU pointer passed to the particle function or is the YOU pointer vagabond at the time the particle function is running?

Thank for your time and help
MAl

Last edited by Malice; 06/20/15 18:59.
Re: Passing YOU in function EFFECT [Re: ] #452655
06/20/15 22:31
06/20/15 22:31
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Originally Posted By: online manual
If effect_local was called by an entity, the particle functions can access this entity through the you pointer. This way, the particle effect can use entity parameters.

I don't know why that sentence focusses on effect_local but on a single player system effect_local and effect behave identically anyway.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Passing YOU in function EFFECT [Re: Superku] #452657
06/20/15 22:56
06/20/15 22:56

M
Malice
Unregistered
Malice
Unregistered
M



Thank you Superku
I simply skipped that sentence and assumed all the information would be multiplayer specific.

Thank you again
Mal

Re: Passing YOU in function EFFECT [Re: Superku] #452659
06/21/15 09:03
06/21/15 09:03
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Originally Posted By: Superku
Originally Posted By: online manual
If effect_local was called by an entity, the particle functions can access this entity through the you pointer. This way, the particle effect can use entity parameters.

I don't know why that sentence focusses on effect_local but on a single player system effect_local and effect behave identically anyway.


Possibly it's not true when calling effect() in multiplayer games (bad idea anyway), so this information was put to effect_local().

Re: Passing YOU in function EFFECT [Re: FBL] #452685
06/22/15 11:51
06/22/15 11:51
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Yes, that's right. The effect() function is remote triggered in a multiplayer game and thus has no YOU pointer, but I would use effect_local() on the clients anyway.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

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