Jump to content

Recommended Posts

Posted (edited)

You don't want to wait because of @reloadscript only for reloading OnInit ?,

you used @loadnpc and OnInit doesn't get triggered ?,

You don't want to respawn your mvps with @reloadscript because you're player will kill them again ?

and you players don't like delay cause of @reloadscript ?

With this command it's possible to trigger OnInit for you without all of these problems.

Just patch your source with my diff file.

If you insert a script with @loadnpc just load the OnInit label with @oninit :P

Syntax:

@oninit <npcname>

oninit.diff

Edited by tr0n
  • Upvote 7
Posted

erm..not sure will you accpet this suggestion of mine...

make it able to select to trigger all npc OnInit or 1 NPC...

because..if just based on 1 NPC..there is alternate way to trigger it...

for example :

OnWhisperGlobal:
OnInit:
<script>
end;

using a OnWhisperGlobal is possible to trigger the OnInit Label as well since it is only for 1 NPC.

and i am sure you are only using this to load a NPC with OnInit label without restart server

Posted (edited)

@Emistry

for this the command @trigger already exists in Source releases.

Mine is for:

If you @loadnpc something on your server you don't want to reloadscript

cause the player don't like it and the mvps respawn. With my command

you can bypass it with using @oninit npcname to trigger the oninit label.

Edited by tr0n
Posted

Owh...haha i didnt know about that...

maybe it is because of the rAFileBot spammed the forum last time...

i just skipped all the Bot's Topic..>.<

because too many topic the bot have created...

haha thx for point it to me

  • 2 weeks later...
Posted (edited)

Syntax:

@oninit <npcname>

Do this code will trigger the whole NPC on the script? I mean for duplicated NPC's..

Edited by uDe
Posted

If it is a duplicate NPC then yes :)

The command is @oninit <npcname>. So, I just have to trigger the main npc name right?

It confuse me because of <npcname>. Not <npcfilename>.. Sorry, it's just Newb questions..

Posted

The command is @oninit <npcname>. So, I just have to trigger the main npc name right?

It confuse me because of <npcname>. Not <npcfilename>.. Sorry, it's just Newb questions..

Yes :)

  • 2 months later...
  • 2 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...