Invalid parameter

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
GiveOneMoreChance
Posts: 19
Joined: Thu Aug 10, 2017 8:09 pm

Invalid parameter

Post by GiveOneMoreChance »

Hello! Can anybody explain why i see this error:

Code: Select all

Script error, "BarrelTest.pk3:decorate.txt" line 137:
Invalid parameter 'a_fireprojectile'
It doesnt work on gzdoom-x64-g3.2pre-417-g4afface and Gzdoom 3.1.0

Also i tried replace to A_FireCustomMissile but i see same error:

Code: Select all

Script error, "BarrelTest.pk3:decorate.txt" line 137:
Invalid parameter 'a_firecustommissile'
Link to PK3: https://www.dropbox.com/s/pxx7st56a3g4z ... t.pk3?dl=0
User avatar
TensorMatrix
Posts: 41
Joined: Wed Mar 29, 2017 7:05 am

Re: Invalid parameter

Post by TensorMatrix »

A_FireProjectile should only be used by weapons. Try replacing it with A_SpawnItemEx
GiveOneMoreChance
Posts: 19
Joined: Thu Aug 10, 2017 8:09 pm

Re: Invalid parameter

Post by GiveOneMoreChance »

Thanks but why a_firecustommissile doesnt work ?
User avatar
phantombeta
Posts: 2175
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Invalid parameter

Post by phantombeta »

Because it's literally the same thing as A_FireProjectile. In fact, A_FireProjectile was only added recently because someone realized the pitch parameter in A_FireCustomMissile was wrong.
If you need to spawn a projectile from a non-weapon actor, use A_CustomMissile or A_SpawnProjectile instead.

Also, A_FireCustomMissile and A_FireProjectile work on CustomInventory actors too, not just on weapons.
GiveOneMoreChance
Posts: 19
Joined: Thu Aug 10, 2017 8:09 pm

Re: Invalid parameter

Post by GiveOneMoreChance »

Thanks, i'm forgot about *Fire* in function :)
Locked

Return to “Editing (Archive)”