Whats wrong with this code?
I use the code below in a map.ini for use with a mission.
Somehow the transport behaviour makes the game crash (because when I remove the whole transport code (from Behavior to end) there is no crash..
What am I doing wrong?
I also want the policecar to act like it has a turret (fire in all directions without turning).
Another thing, is there a way to change the name of a unit for a certain mission?
Note: I am a bit of a newbie in Generals editing.
Here is the code:
Object PoliceCar
WeaponSet
Conditions = None
Weapon = PRIMARY AmericaOfficerMachineGun
End
Behavior = TransportContain ModuleTag_05
PassengersAllowedToFire = Yes
Slots = 5
; EnterSound = GarrisonEnter
; ExitSound = GarrisonExit
DamagePercentToUnits = 100% ;10%
AllowInsideKindOf = INFANTRY
ExitDelay = 250
NumberOfExitPaths = 3 ; Defaults to 1. Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
End
VoiceSelect = RangerVoiceSelect
VoiceGroupSelect = BattleCrySound
VoiceMove = RangerVoiceMove
VoiceAttack = RangerVoiceAttack
SoundEnter = HumveeEnter
SoundExit = HumveeExit
End
|