11-14-2010, 03:02 AM
11-14-2010, 03:07 AM
I'm not sure, but maybe use
if(AddNote(string& asNameAndTextEntry, string& asImage))
{
stuff here
}
I'm kinda new to scripting C++, but this should work in Flash...
But you better wait for someone else to react xD
Edit:
Try giving yor note a callback func.
Then use AddEntityCollideCallback.
Sorry if there are typos, ipods arent good with forums
if(AddNote(string& asNameAndTextEntry, string& asImage))
{
stuff here
}
I'm kinda new to scripting C++, but this should work in Flash...
But you better wait for someone else to react xD
Edit:
Try giving yor note a callback func.
Then use AddEntityCollideCallback.
Sorry if there are typos, ipods arent good with forums
11-14-2010, 05:26 AM
(11-14-2010, 03:07 AM)Akumasama Wrote: [ -> ]I'm not sure, but maybe use
if(AddNote(string& asNameAndTextEntry, string& asImage))
{
stuff here
}
I'm kinda new to scripting C++, but this should work in Flash...
But you better wait for someone else to react xD
Edit:
Try giving yor note a callback func.
Then use AddEntityCollideCallback.
Sorry if there are typos, ipods arent good with forums
PHP Code:
void OnStart()
{ AddEntityCollideCallback("Player", "Note_Warning", "EndOfDemo", false, 1);
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
}
}
void EndOfDemo(string &in asParent, string &in asChild, int alState)
{
for(int i=1;i<2;i++) SetEntityActive("Infected3_"+i,true);
}
Please note that its a part of my code.
I've put the Callback func for the note OnPickup and added the Entity collide thing but it doesn't do anything at all.
11-14-2010, 10:16 AM
void Interact_Note_1(string &in asEntity)
{
your event
}
and in the editor you must be add a callbackfunction on the note named Interact_Note_1 (or whatever you will named)
{
your event
}
and in the editor you must be add a callbackfunction on the note named Interact_Note_1 (or whatever you will named)
11-14-2010, 11:15 AM
(11-14-2010, 10:16 AM)Everlone Wrote: [ -> ]void Interact_Note_1(string &in asEntity)
{
your event
}
and in the editor you must be add a callbackfunction on the note named Interact_Note_1 (or whatever you will named)
I do not understand?
[EDIT]
Never mind thanks Everlone.