Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Feb 24, 2026 3:07 pm
All times are UTC + 0
[Phobos] Getting short range secondary to work with Multi Weapon and Force weapon
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
freedom fighter
General


Joined: 14 May 2009

PostPosted: Mon Feb 02, 2026 9:50 am    Post subject:  [Phobos] Getting short range secondary to work with Multi Weapon and Force weapon
Subject description: it doesnt fire...
Reply with quote  Mark this post and the followings unread

So the idea is that this artillery unit can defend itself at close range with machine guns. I figured using ForceWeapon.InRange will allow it to do so but for some reason it doesnt do anything. This unit is also using multi weapons since it has two different artillery weapons:

Code:
[TechnoType]
Primary=CatalystMortar
Secondary=MortarGun

MultiWeapon=yes
WeaponCount=3
MultiWeapon.IsSecondary=2,3
MultiWeapon.SelectCount=3
ForceWeapon.InRange=3
ForceWeapon.InRange.Overrides=4
ForceWeapon.InRange.TechnoOnly=true

Weapon1=CatalystMortar
Weapon2=MortarGun
Weapon3=TwinGattling


It wont attack anything within 4 cells, not even retaliate. I tested Weapon3 with ForceWeapon.Defenses and while it does show an attack cursor on base defenses it just moves to it and does nothing. Ive also declared TwinGattling in a WeaponType list just in case and it still did jack. Anything im missing or did i misunderstood what ForceWeapon.InRange does?

_________________
The future belongs to The Forgotten!

Back to top
View user's profile Send private message
geof101
Rocket Infantry


Also Known As: MetalMonkey
Joined: 30 May 2012

PostPosted: Sun Feb 22, 2026 5:39 am    Post subject: Reply with quote  Mark this post and the followings unread

I will share my code when i get home. Mine is working perfectly.

Back to top
View user's profile Send private message Twitter Channel URL
freedom fighter
General


Joined: 14 May 2009

PostPosted: Yesterday, at 10:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Oh? How did you get it to work? Do share  Applauses!

_________________
The future belongs to The Forgotten!

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum