Search found 12 matches

by ogwatto
Fri Jan 19, 2024 5:42 am
Forum: Scripting
Topic: [ACS] Trouble With "warp" Function
Replies: 9
Views: 875

Re: [ACS] Trouble With "warp" Function

Don't use an OPEN script for it as it's a type that has no activator, (void) was good because it set the player as the activator for pressing the switch. Now you can still use Warp for this without changing the activator, as there's a flag WARPF_MOVEPTR which will move the TID to the activator ...
by ogwatto
Fri Jan 19, 2024 4:36 am
Forum: Scripting
Topic: [ACS] Trouble With "warp" Function
Replies: 9
Views: 875

Re: [ACS] Trouble With "warp" Function

ramon.dexter wrote: Fri Jan 19, 2024 4:07 am
ogwatto wrote: Fri Jan 19, 2024 4:04 am

Must the light have a specific tag to allow it to be moved like actors?
The light in the map IS an actor.
Okay sure, but I'm having trouble moving it still.
Any ideas why?

Thanks
by ogwatto
Fri Jan 19, 2024 4:04 am
Forum: Scripting
Topic: [ACS] Trouble With "warp" Function
Replies: 9
Views: 875

Re: [ACS] Trouble With "warp" Function

Okay, the script is completely wrong. SetActivator() has no purpose here, as you're assigning activator TID "1", but in warp() function you're using TID "2". Thanks for the reply. SetActivator was there to make the light move instead of the player, because "warp" moves the activator, which in that ...
by ogwatto
Fri Jan 19, 2024 2:02 am
Forum: Scripting
Topic: [ACS] Trouble With "warp" Function
Replies: 9
Views: 875

Re: [ACS] Trouble With "warp" Function

Yeah, your script type is (void), which means you're not calling the script in any way. You need to activate the script. If you want the script to run from start of the map, you have to make it OPEN instead of (void). But keep in mind such scripts run from map start. When you want to call the ...
by ogwatto
Thu Jan 18, 2024 11:53 pm
Forum: Scripting
Topic: [ACS] Trouble With "warp" Function
Replies: 9
Views: 875

[ACS] Trouble With "warp" Function

Hey lads, I'm having trouble using the ACS function "warp" and "Thing_Move" to move a dynamic light to the player's position but I am having trouble doing so. When testing it on other actors, such as a barrel, the light moves without issue. Here's a video demonstrating my problem: https://www ...
by ogwatto
Wed Jan 03, 2024 11:28 pm
Forum: Scripting
Topic: A_AttachLight Help
Replies: 2
Views: 569

A_AttachLight Help

Hi lads,
I'm trying to attach a light source to the player, but I'm having trouble.

Here's what I've Written:
Ex1.png

Sorry if the fix is obvious, I'm still very new to scripting.
by ogwatto
Wed Dec 27, 2023 11:07 pm
Forum: Scripting
Topic: Trouble With Scripting Sounds To Play
Replies: 9
Views: 614

Re: Trouble With Scripting Sounds To Play

ramon.dexter wrote: Wed Dec 27, 2023 12:56 pm Yes, the sound should be in hte same archive...when using pk3, why multiple archives?
It was just how everything was organised
Regardless, I've placed the sounds into the same .wad as the map and still nothing...
by ogwatto
Wed Dec 27, 2023 5:43 am
Forum: Scripting
Topic: Trouble With Scripting Sounds To Play
Replies: 9
Views: 614

Re: Trouble With Scripting Sounds To Play

Grasping at straws here, could the issue be the map and sounds not being the same PK3?
by ogwatto
Wed Dec 27, 2023 5:34 am
Forum: Scripting
Topic: Trouble With Scripting Sounds To Play
Replies: 9
Views: 614

Re: Trouble With Scripting Sounds To Play

Yes, you are still making an error. Study the following link, since it seems like you don't know what you're doing. https://zdoom.org/wiki/SNDINFO The thing is, you either define the sound like this: soundname soundlump Or soundname "path to lump/in pk3" So yours Thud1 "thud1" is just wrong. If you ...
by ogwatto
Wed Dec 27, 2023 2:21 am
Forum: Scripting
Topic: Trouble With Scripting Sounds To Play
Replies: 9
Views: 614

Re: Trouble With Scripting Sounds To Play

You have it in front of your eyes! Just take a look at the other sounds defined and try to find a difference. Lets check, for example, THUD2. The first line has way too many quotes... I removed the other lines just to test if quoting fixes it does. The error pointed to the first line, so I presumed ...
by ogwatto
Wed Dec 27, 2023 2:04 am
Forum: Scripting
Topic: Trouble With Scripting Sounds To Play
Replies: 9
Views: 614

Re: Trouble With Scripting Sounds To Play

Please, take a look on how you should use the LocalAmbientSound() function. The first argument is a string. Strings have to be enclosed inside "double qoutes", otherwise will not work. Thanks for the reply, I'm still getting the same error regardless of double quoting. Any other suggestions?
by ogwatto
Tue Dec 26, 2023 10:42 pm
Forum: Scripting
Topic: Trouble With Scripting Sounds To Play
Replies: 9
Views: 614

Trouble With Scripting Sounds To Play

Hi Lads, I have hit a road block, I would like to trigger a sound to play in a script but have had trouble doing so. I receive an "identifying has not been declared" error when trying to play the sound through the script when "#include SNDINFO.txt" is not included. That changes to an "Invalid ...

Go to advanced search