Larian Banner
Previous Thread
Next Thread
Print Thread
How to create a working source fountain #671580
07/08/20 03:16 AM
07/08/20 03:16 AM
Joined: Aug 2018
Posts: 2
R
Razor_Bread Offline OP
stranger
Razor_Bread  Offline OP
stranger
R

Joined: Aug 2018
Posts: 2
I've gotten as far as causing the fountain to create source, the only problem is it creates it underneath it and not around the tap like the base game does.
I see that the source fountains have a trigger around the tap but i can't find any reference to a script nor can i find any script like it
How the fuck do these things work?!


Re: How to create a working source fountain [Re: Razor_Bread] #671587
07/08/20 10:45 AM
07/08/20 10:45 AM
Joined: Sep 2017
Posts: 874
The Composer Offline

Moderator
The Composer  Offline

Moderator

Joined: Sep 2017
Posts: 874
You could use a goal in the story editor to achieve it. The following code is a very basic example that'd spawn a Source pool with a 1.6 radius from its center for a -1.0 lifetime (infinite), where you'd have to replace {ITEMGUID_Fountain} with your fountain item's ITEMGUID.

IF
CharacterUsedItem(_Player, {ITEMGUID_Fountain})
THEN
CreateSurface({ITEMGUID_Fountain}, "SurfaceSource", 1.6, -1.0);


If you'd want to make the surface appear off-center, you could perhaps make an invisible helper or pointtrigger and replace the CreateSurface call with CreateSurface({Point trigger ITEMGUID / Helper ITEMGUID}, "SurfaceSource", 1.6, -1.0);

If you really want to get into modding then I would recommend considering to join the Larian Discord and hop into the modding section there smile

Last edited by The Composer; 07/08/20 10:45 AM.

Moderated by  Larian_Koala, Larian_KVN 

Powered by UBB.threads™ PHP Forum Software 7.6.2