heres script.
Crashing with no errors
Moderator: Moderators
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Crashing with no errors
Ok i created a basic script and when i go to munge in munges fine no errors then when i got to play game it crashes on last bubble with no errors in the log.
heres script.
heres script.
Hidden/Spoiler:
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Crashing with no errors
mm no should to be:
or simil xD
Code: Select all
onfirstspawn = OnCharacterdeath(
function(player, vehicle)
if IsCharacterHuman(player) and GetEntityClass(player) == GetEntityClassPtr("cis_inf_rifleman") then
SetBleedRate (5, 1)
end
end
)
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Re: Crashing with no errors
why do u have vehicle it should be character shouldn't it?
and its still saying if anakin kills the droid then the tickets will bleed like that right?
and its still saying if anakin kills the droid then the tickets will bleed like that right?
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Crashing with no errors
ops yeah sorry i modified mine to like your, player or character i believe is the sameswado95 wrote:why do u have vehicle it should be character shouldn't it?
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Re: Crashing with no errors
Ok thx at least im getting somewhere now 
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Crashing with no errors
Code: Select all
BleedRateFunc = OnCharacterDeath(
function (character, killer)
if GetEntityClassName(GetCharacterUnit(character)) == "cis_inf_rifleman" and GetEntityClassName(GetCharacterUnit(killer)) == "rep_hero_anakin" then
SetBleedRate (5, 1)
end
end
)
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Re: Crashing with no errors
Im going to keep reading about luas later on but why do i need the entity names?
Ok im not sure but do i have it set to a ticket every 5 sec or a 5 tickets every 1 sec?
It dosnt seem to be working because when i kill droid rifle man with anakin the bleedrate doesn't go up.
Ok im not sure but do i have it set to a ticket every 5 sec or a 5 tickets every 1 sec?
It dosnt seem to be working because when i kill droid rifle man with anakin the bleedrate doesn't go up.
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Crashing with no errors
Battlefront2_scripting_system.doc wrote:SetBleedRate (team, rate)
This function sets the visible bleed rate for the specified team.
You should look into the Battlefront2_scripting_system.doc in BF2_ModTools\documentation.
Right now it's set to a BleedRate of 1 for team 5. I didn't use that function yet, so i just copied it assuming you did it right.
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Re: Crashing with no errors
ok thx but dont u mean for team 1 bleed rate 5? And i need to have ATT, and DEF instead of numbers for the teams right?
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Crashing with no errors
Battlefront2_scripting_system.doc wrote:SetBleedRate (team, rate)
This function sets the visible bleed rate for the specified team.
Get it?swado95 wrote:Code: Select all
then SetBleedRate (5, 1)
Also, these lines
Code: Select all
-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
-- These variables do not change
ATT = REP;
DEF = CIS;- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Re: Crashing with no errors
Ok i get it now so Rep team number is 1 and cis team number 2.
Quick question could i put a -10 and gain tickets or do i have to get another code?
Quick question could i put a -10 and gain tickets or do i have to get another code?
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: Crashing with no errors
Never tested it, but I think it will work. Just try it out.
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
Re: Crashing with no errors
Ok i did the map but when i killed the rifle man with anakin my team didn't start bleeding out. And i set the bleed to 10 so it should be noticeable.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Crashing with no errors
So did you change the bleed rate to this:???
SetBleedRate (1, 10)
- swado95
- Rebel Warrant Officer

- Posts: 304
- Joined: Wed Apr 08, 2009 7:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Where I whant to be.
