Author Topic: SDK Questions Thread  (Read 7024 times)

Offline Mr Feltzer

  • FOnline: Australia
    • The Core Gaming Australia's Website
SDK Questions Thread
« on: January 31, 2011, 05:39:12 am »
well I Have some questions, And Im sure Other people do so heres the Thread to Post Them!

Okay My Biggest Question is this, This Might require alot of Code, But Just give me a "reference point" or anything that I Can do to Find out how to Follow this up
How Can I Spawn an NPC From a Certain Team and Certain coordinates,

So I Make a Script
Throw in the Code, and As Soon as the Server Opens up, The Script is Executed and the NPC's Are Spawned, and Are Automaticly Respawned
Founder of Fallout Online Australia

Offline Mr Feltzer

  • FOnline: Australia
    • The Core Gaming Australia's Website
Re: SDK Questions Thread
« Reply #1 on: January 31, 2011, 09:45:25 am »
well I Have some questions, And Im sure Other people do so heres the Thread to Post Them!

Okay My Biggest Question is this, This Might require alot of Code, But Just give me a "reference point" or anything that I Can do to Find out how to Follow this up
How Can I Spawn an NPC From a Certain Team and Certain coordinates,

So I Make a Script
Throw in the Code, and As Soon as the Server Opens up, The Script is Executed and the NPC's Are Spawned, and Are Automaticly Respawned

Now I Just need to Know How to make an NPC Spawned on Mapper to be Hostile
Founder of Fallout Online Australia

Re: SDK Questions Thread
« Reply #2 on: January 31, 2011, 02:32:07 pm »
learn c++ and c#

Offline Mr Feltzer

  • FOnline: Australia
    • The Core Gaming Australia's Website
Re: SDK Questions Thread
« Reply #3 on: January 31, 2011, 09:56:20 pm »
learn c++ and c#

Dont be a Dick, I Have been scripting for 3 Years And I Need to know the Function Code, Where Can I Find it or What is it?
Founder of Fallout Online Australia

Offline Mayck

  • Rotator
  • ...shhhh...
Re: SDK Questions Thread
« Reply #4 on: January 31, 2011, 10:23:07 pm »
I'd try to using "void Map::SetEvent(int  eventType, string&  funcName)" function
where you use MAP_EVENT_IN_CRITTER ( =critter enters map) as the "eventType" value
and "funcName" is name of your own function used to handle the event (I'm not sure what arguments it should have, try looking in the documentation)

and then try to use this in the handling function(it should add the critter to the npc's enemy list):
void Critter::AddEnemyInStack(uint critterId)

Offline Mr Feltzer

  • FOnline: Australia
    • The Core Gaming Australia's Website
Re: SDK Questions Thread
« Reply #5 on: January 31, 2011, 11:14:49 pm »
wheres the documentation?
Founder of Fallout Online Australia

Offline Mayck

  • Rotator
  • ...shhhh...
Re: SDK Questions Thread
« Reply #6 on: January 31, 2011, 11:51:23 pm »
Docs folder in the SDK