Author Topic: Styles in GetSpawnStat and GetObjectStat  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Styles in GetSpawnStat and GetObjectStat
« on: September 27, 2008, 06:33:11 am »
What are the styles in GetSpawnStat and GetObjectStat?
It dosent say in the enecese manual..

Quote
var i: byte;
begin
  for i := 1 to 254 do //NOTE: This spawn point array goes from 1 to 254, NOT 0 or 255.
    if GetSpawnStat(i,'active') = true then begin // Make sure this spawn point is used
      if GetSpawnStat(i,'style') = 1 then WriteLn('Spawn ID '+inttostr(i)+' is a Alpha Team spawn point');
      if GetSpawnStat(i,'style') = 2 then WriteLn('Spawn ID '+inttostr(i)+' is a Bravo Team spawn point');
      if GetSpawnStat(i,'style') = 3 then WriteLn('Spawn ID '+inttostr(i)+' is a Charlie Team spawn point');
      if GetSpawnStat(i,'style') = 4 then WriteLn('Spawn ID '+inttostr(i)+' is a Delta Team spawn point');
// All the other style's are for things such as Medical Kit, Predator, Flag, Grenade Kit etc
    end;
im asking for the style numbers, anyone knows them?

Date Posted: September 27, 2008, 06:10:20 am
anyone reply? i really need to know this

i bet only encese knows the answer to my question...

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Styles in GetSpawnStat and GetObjectStat
« Reply #1 on: September 27, 2008, 07:30:18 am »
1 = Alpha Spawn
2 = Bravo Spawn
3 = Charlie Spawn
4 = Delta Spawn
5 = Red Flag
6 = Blue Flag
7 = Grenades
8 = Medikits
9 = Cluster Grenades
10 = Bullet Proof Vest
11 = Flamegod
12 = Berserk
13 = Predator
14 = Yellow Flag
15 = Rambo Bow

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Styles in GetSpawnStat and GetObjectStat
« Reply #2 on: September 27, 2008, 08:01:36 am »
1 = Alpha Spawn
2 = Bravo Spawn
3 = Charlie Spawn
4 = Delta Spawn
5 = Red Flag
6 = Blue Flag
7 = Grenades
8 = Medikits
9 = Cluster Grenades
10 = Bullet Proof Vest
11 = Flamegod
12 = Berserk
13 = Predator
14 = Yellow Flag
15 = Rambo Bow
thank you very much EnEsCe

can be locked now
EDIT1: actually 1 more question, what does "active" stat in GetObjectStat does? does it mean its on the map (didint disappear yet)?

EDIT2: i just tested it, and i guess the answer is no. If im correct, how to check if the object is on the map? (didint disappear?)
« Last Edit: September 27, 2008, 08:30:01 am by Norbo »

Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: Styles in GetSpawnStat and GetObjectStat
« Reply #3 on: September 27, 2008, 09:46:26 am »
AFAIK,  'GetObjectStat(i,'active')' works at the same way as 'GetPlayerStat(i,'active')'   (checks if that object is active)

Also, GetSpawnStat(i,'active') can be used with SetSpawnStat(i,'Active')
GetSpawnStat checks if its used (enables / disabled) and you can enable / disable it w/ SetSpawnStat
Also Known As REIMA


Lol Happles (happy apples)