The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] I suck at scripting, help!
TarkoRehin Offline
Junior Member

Posts: 11
Threads: 3
Joined: Jan 2011
Reputation: 0
#1
[SOLVED] I suck at scripting, help!

First I want to apologize for making a thread like this (I'm guessing you guys get them alot..)

I've been reading around and trying to script for a few days now, and not a single script I've done works.. It's getting on my nerves really.

Here's one of my scripts.. (You'll probably laugh at my stupidity when you see this, but please bear with me.)

void TakeTinder("tinderbox_1", "OnPickup")
{
    SetEntityActive("servant_grunt_1", true);
}

What I want this to do is when I pickup the tinderbox a grunt should spawn (or activate).

I'm assuming when guides say things like "string &in asEntity" they want me to replace that text entirely with the entities name? correct me if I'm wrong, I've never found a clear explanation of it.

Some more information to make things clear:
I've named the tinderbox "tinderbox_1". (duh)
I've named the grunt "servant_grunt_1". (duh)
I've written "TakeTinder" without quotations in the tinderbox's CallbackFunc.
The grunt is currently not "active".
The grunt is a hallucination, but that's not the problem as it never actually appears anyways.

That's it for now, I will add information if required.

I'd very much appreciate if you checked out my Youtube channel: https://www.youtube.com/user/RehinRealm
Thanks!
(This post was last modified: 01-22-2011, 04:43 PM by TarkoRehin.)
01-21-2011, 09:45 PM
Find


Messages In This Thread
[SOLVED] I suck at scripting, help! - by TarkoRehin - 01-21-2011, 09:45 PM
RE: I suck at scripting, help! - by ThePaSch - 01-21-2011, 09:54 PM
RE: I suck at scripting, help! - by TarkoRehin - 01-21-2011, 10:04 PM
RE: I suck at scripting, help! - by Sharkhead - 01-21-2011, 10:41 PM
RE: I suck at scripting, help! - by Tanshaydar - 01-21-2011, 10:57 PM
RE: I suck at scripting, help! - by TarkoRehin - 01-21-2011, 11:07 PM
RE: I suck at scripting, help! - by Tanshaydar - 01-21-2011, 11:47 PM
RE: I suck at scripting, help! - by TarkoRehin - 01-22-2011, 12:37 AM
RE: I suck at scripting, help! - by Tottel - 01-22-2011, 11:59 AM
RE: I suck at scripting, help! - by TarkoRehin - 01-22-2011, 02:49 PM
RE: I suck at scripting, help! - by Som1Lse - 01-22-2011, 03:13 PM
RE: I suck at scripting, help! - by TarkoRehin - 01-22-2011, 04:43 PM



Users browsing this thread: 1 Guest(s)