MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000355Soldat Dedicated ServerScripting Corepublic2013-07-30 12:562013-08-02 21:21
ReporterMighty 
Assigned ToFalcon 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86OSWindowsOS VersionXP SP3
Product Version2.7.4 
Target VersionFixed in Version 
Summary0000355: Script Core 3 - TPlayer.OnWeaponChange triggers 3 times instead of 1
DescriptionWhen having 2 different weapons, switching between them just once triggers Player.OnWeaponChange 3 times
Steps To ReproduceUse below code as a script using Script Core 3

procedure OnWepChangeMessage(Player: TActivePlayer; Primary, Secondary: TPlayerWeapon);
begin
  Player.Tell(Primary.Name + ' | ' + Secondary.Name);
end;
 
var
  i: Byte;
begin
  for i:=1 to 32 do
    Players[i].OnWeaponChange := @OnWepChangeMessage;
end.
TagsNo tags attached.
John
Attached Files

- Relationships

-  Notes
(0001797)
Falcon (administrator)
2013-07-30 16:22

Does OnWeaponChange do the same?
(0001804)
Mighty (developer)
2013-07-31 08:23
edited on: 2013-07-31 10:19

what do you mean? This is OnWeaponChange
Edit: Oh I get it. Yes it does.


- Issue History
Date Modified Username Field Change
2013-07-30 12:56 Mighty New Issue
2013-07-30 16:22 Falcon Note Added: 0001797
2013-07-30 16:22 Falcon Assigned To => Falcon
2013-07-30 16:22 Falcon Status new => acknowledged
2013-07-31 08:23 Mighty Note Added: 0001804
2013-07-31 10:19 Mighty Note Edited: 0001804 View Revisions
2013-08-02 21:21 Falcon Status acknowledged => resolved
2013-08-02 21:21 Falcon Resolution open => fixed


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker