Jump to content


Photo

Beacon


  • Please log in to reply
8 replies to this topic

#1 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 03 November 2012 - 05:39 PM

I was wondering how I could let the object "beacon" (that we place on the map by ctrl+b ) have a timer, when the timer runs out it self destruct the beacon.

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 04 November 2012 - 06:34 PM

data\ini\object\civilian\civilianprop.ini

I'd say give the MultiplayerBeacon object a "lifetime" kind of body, and see what happens ;) (like a summoned unit)

Edited by Ridder Geel, 04 November 2012 - 06:34 PM.

Ridder Geel

#3 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 17 November 2012 - 06:05 PM

When I startup the game it gives me an error saying that "ModuleTag_01" needs to be unique. So I assume the game knows something is wrong but doesn't have the right error message to specify the exact problem.

So I wonder how do you add a slowdeath of 3 seconds ( to an immortalbody)

or how to convert the mpbeacon to a lifetime kind of body..




Behavior = DeletionUpdate ModuleTag_deletebeacon
MinLifetime = 3
MaxLifetime = 3
End

Object MultiplayerBeacon

; *** ART Parameters ***
SelectPortrait = UPBeacon
ButtonImage = SSBeacon_L

Draw = W3DScriptedModelDraw ModuleTag_01
DefaultModelConditionState
Model = MPBeacon

End
ModelConditionState SELECTED
Model = MPBeacon
; ParticleSysBone = emberBone CampFireSmoke
End

End

; *** DESIGN parameters ***
DisplayName = OBJECT:Beacon
EditorSorting = SYSTEM
CommandSet = EmptyCommandSet

; *** ENGINEERING parameters ***
KindOf = IMMOBILE SELECTABLE ALWAYS_VISIBLE UNATTACKABLE NOT_AUTOACQUIRABLE STRUCTURE; NO_COLLIDE ALWAYS_SELECTABLE

ClientUpdate = BeaconClientUpdate ModuleTag_02
RadarPulseFrequency = 1000
RadarPulseDuration = 500
End

; Body = InactiveBody ModuleTag_03
; End

Body = ImmortalBody ModuleTag_03
MaxHealth = 1.0
End

Geometry = CYLINDER
GeometryIsSmall = Yes
GeometryMajorRadius = 2.4
GeometryHeight = 13

End

Edited by THORONGlL, 17 November 2012 - 06:06 PM.


#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 17 November 2012 - 08:09 PM

Why not give it these two modules instead of the one you are currently using?
Body = ActiveBody ModuleTag_02
  MaxHealth		 = 2000			   
  MaxHealthDamaged  = 2000
End
Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
  MinLifetime  = 45000
  MaxLifetime  = 45000
End
It's not like anyone can attack it...
Ridder Geel

#5 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 17 November 2012 - 11:03 PM

You use ModuleTag_02 which is used for the signal on the minimap...


 ClientUpdate = BeaconClientUpdate ModuleTag_02
    RadarPulseFrequency = 1000
    RadarPulseDuration = 500
  End

You seem to tell me that it doen't matter if you use the same moduletag_name.
But the game gives me an error telling me to use an unique name but to the first module.
I added a zipped big file if you put it in your game dir and startup the game you'll see what error I get...


Why not give it these two modules instead of the one you are currently using?

Body = ActiveBody ModuleTag_02
MaxHealth		 = 2000			
MaxHealthDamaged = 2000
End
Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
MinLifetime = 45000
MaxLifetime = 45000
End
It's not like anyone can attack it...

Attached Files



#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 17 November 2012 - 11:50 PM

Well give it another name instead of that module tag?
Call it ModuleTag_ILikeThisRandomBeacon if ya feel like it :p
Ridder Geel

#7 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 17 November 2012 - 11:51 PM

I know it seem obvious but I tried that already, it didn't help..

Well give it another name instead of that module tag?
Call it ModuleTag_ILikeThisRandomBeacon if ya feel like it :p


Edited by THORONGlL, 17 November 2012 - 11:52 PM.


#8 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 18 November 2012 - 02:27 AM

Well your file name is:
data\ini\object\civlian\civilianprop.ini
should be CIVILIAN thats for one... So fix that...
And then TRY again....
Always double check file names and object names when you start getting duplicate module tag errors...
Ridder Geel

#9 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 18 November 2012 - 02:50 AM

The two adjustments you mentioned solved it. Thank you R.G.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users