Seriously!

Go Back   Seriously! Forums > Serious Sam Series > Serious Sam Classic > Serious Sam Classic Workshop > Serious Sam Classic SDK

Serious Sam Classic SDK Discuss coding ideas & problems or show tutorials and code snippets.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 09-06-2002, 03:16 PM   #1   Add To Ignore List  
Footballer Orc
 
danilojo's Avatar
 
Joined: Nov 2001
Location: Madrid, España
 
danilojo is offline
Default Adding my own event

We have seen the serious sam ++ code, and we want to add the change target entity to our mod.

We have seen that at the top of the code of the entity, it has the code of a new event that has been added.
Well we have inserted the code to the SE mod we are doing, and we have a lot of errors with the compile., because all the entitys that call that event, don't recognize that event.

So how do we do to make all the entitys recognize that new event that we have added. I have seen that in the Baseevents.h, there are a lot of declarations of the events, but we want to know before changing that file that is in the engine, how do you make to insert your own events.
__________________
A member of numayah interactive.
www.numayah.com

by now is only the homepage on the site, in a future...
  Reply With Quote
Old 09-06-2002, 08:26 PM   #2   Add To Ignore List  
Fluffy Teletubby
 
Iirion Claus's Avatar
 
Joined: Apr 2001
Location: Israel
 
Iirion Claus is offline
Default

Check out one of the other entities in the SS++ source codes.

For example, in Teleport, the following had to be added:

(1) A uses clause for the TargetChanger entity, so the entity will know what's the EChangeTarget event:
Code:
uses "Entities/TargetChanger";
(2) An on statement inside the wait(), telling the entity to change its target once an event is received:
Code:
// if required to change the target
on(EChangeTarget eChangeTarget): {
  m_penTarget= eChangeTarget.penNewTarget;
  resume;
}
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finzy's Frozen Asylum Finzy Showcases & Portfolios 2979 08-04-2017 03:38 PM
A possible big co-op event : New Kroy City Valerie Valens Game Talk 25 08-22-2008 04:23 PM
Mouse Issue kerblam Serious Sam 2 9 07-25-2006 06:05 AM
Mapping: Combination Locks hot_sleeper Serious Sam Classic Mods 6 01-15-2003 11:44 AM
Mapping: Random Selection hot_sleeper Serious Sam Classic Mods 2 01-03-2003 07:12 AM


All times are GMT -4. The time now is 08:19 PM.